Everyone is an Admin Level 5 when they connect.
#9

Quote:
Originally Posted by Stinged
Посмотреть сообщение
The variable are linked to the playerid.

Let me give an example:
Let's say there was an admin level 5 with id 0 online, and that player left.
The admin variable that is linked to id 0 is still 5.
The next player to join and get id 0 will get the admin level that was linked to id 0, which is 5.

Just try to reset it under OnPlayerDisconnect, and tell me what happens.
Like Stinged said,
You should try to reset it under OnPlayerConnect or OnPlayerDisconnect Callback except the Password, Like for Example :-
pawn Код:
// Under OnPlayerConnect Callback
    pInfo[playerid][pAdmin] = 0;
    pInfo[playerid][Score] = 0;
    pInfo[playerid][Money] = 0;
    pInfo[playerid][Kills] = 0;
    pInfo[playerid][Deaths] = 0;

// Blah... Blah... Blah... The Rest of the Codes here.
// The stats/values/integers that have been saved will be loaded using the function called INI_ParseFile...
// You can set it inside the OnPlayerDisconnect Callback too...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)