Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by [HiC
TheKiller ]
Quote:
Originally Posted by [B
Vortex ]
Quote:
Originally Posted by [HiC
TheKiller ]
Do something like:
pawn Код:
if(Loggedin[playerid] == 0) { SendCleintMessage(playerid, COLOUR, "LOG THE **** IN!"); Adminlevel[playerid] = 0; }
I've tried to put pInfo[playerid][Level] = 0 on onplayerconnect, but that just sets their level to 0, making it so if the real admin connects and logs in, they're level is gone.
Change Loggedin to your variable which checks if they are logged in, and change Adminlevel to the admin variable.
|
Where would I put this?
|
You could really put that anywhere. A better way would probably be to give the admin level after they login, not when they connect.
|
|
What about it? If you want to know where to post the code, the best place would be OnPlayerSpawn and disable admin commands before spawn.
|
Oh sorry, I posted my reply witin your quote.
I've tried to put pInfo[playerid][Level] = 0 on onplayerconnect, but that just sets their level to 0, making it so if the real admin connects and logs in, they're level is gone.