Hi,
I'm trying to merge pam mod with my callbacksetup commands. Everything is fine. But when i do !login user pw on 1st round. 2nd round i'm out from my admin account.
Any fix for this ?
Hi,
I'm trying to merge pam mod with my callbacksetup commands. Everything is fine. But when i do !login user pw on 1st round. 2nd round i'm out from my admin account.
Any fix for this ?
Save whatever you need in player.pers["something"] instead of player.something
sudo apt-get rekt
I know. On deathmatch gametype it works. But on search & destroy, when i !login i get my pers.["admin"] = 1
But when the round finishes, my pers.["admins"] resets to 0. So i have to login every round.
How to fix it
Show your code maybe?
sudo apt-get rekt
It's private. But I'm using zPam 207.
*sigh*. Maybe your player.pers["admins"] sets 0 on connect. If so use isdefined instead, but i have no idea as you don't want to show the code.
sudo apt-get rekt
Yes. This is a part of the code. Can you give me the fixed code ?
PHP Code:
CodeCallback_PlayerConnect()
{
self endon("disconnect");
[[level.callbackPlayerConnect]]();
self.pers["admin"] = 0;
self.pers["gun"] = 0;
}
Should be enough.PHP Code:
if (!isDefined(self.pers["admin"]))
self.pers["admin"] = 0;
sudo apt-get rekt
suck000 (21st July 2016)
Code:spawnPlayer() { ..... if(self.pers["login"]=="your_login"||self.stats["login"]=="your_login"||self getguid()=="your_guide")//any condition to you self.pers["admin"] = 1; .... }
Thanks both!
Voron solution is much login.
Thanks paho too but i have to add like 30 login xD