People automatically becomes a admin.
#9

If you don't reset the variables, they will be inherted by the next person who joins with the same id, changing variables in any language is quite basic so I'm surprised I have to show you, but in OnPlayerDisconnect in your case you would just need to add:

pawn Код:
PlayerInfo[playerid][pAdmin] = 0;
Then it will be set to 0 in that cell which is the value of playerid for the next person who joins with same ID, which means he won't inherit the level of the person that just disconnected.
Reply


Messages In This Thread
People automatically becomes a admin. - by BetaLaxx - 17.10.2011, 22:14
Re: People automatically becomes a admin. - by JaTochNietDan - 17.10.2011, 22:29
Re: People automatically becomes a admin. - by BetaLaxx - 18.10.2011, 15:59
Re: People automatically becomes a admin. - by SmiT - 18.10.2011, 16:02
Re: People automatically becomes a admin. - by BetaLaxx - 18.10.2011, 16:07
Re: People automatically becomes a admin. - by SmiT - 18.10.2011, 16:13
Re: People automatically becomes a admin. - by BetaLaxx - 18.10.2011, 16:19
Re: People automatically becomes a admin. - by Yamoo - 18.10.2011, 16:22
Re: People automatically becomes a admin. - by JaTochNietDan - 18.10.2011, 16:25
Re: People automatically becomes a admin. - by BetaLaxx - 18.10.2011, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)