12.11.2013, 14:53
I had this issue before, it happens because you didn't reset the variables when player first registers, which means he'll have the same variables values of the last guy who had his ID.
OnPlayerConnect, reset the enums/player variables:
OnPlayerConnect, reset the enums/player variables:
pawn Код:
public OnPlayerConnect(playerid)
{
RestartVariables(playerid);
return 1;
}
stock RestartVariables(playerid)
{
// reset variables to avoid random players getting your powers
Admin[playerid] = 0.
// etc
return 1;
}