25.06.2014, 11:30
It's probably because you're calling it under OnPlayerRequestSpawn, and when the player first connects it gets called before the players data is loaded, there fore it doesn't know what the value of RulesRead is. Try doing it on OnPlayerSpawn, something like this:
pawn Код:
public OnPlayerSpawn(playerid)
{
if(gIsPlayerLoggedIn)
{
// spawn codes
}
else
{
if(pInfo[playerid][RulesRead] == 0)
{
// show rules
}
else
{
// show login/register..
}
}
return 1;
}