OnPlayerSpawn problem
#6

Try using this
Код:
public OnPlayerRequestSpawn(playerid)
{
    if(Logged[playerid] == 0)
    {
        SendClientMessage(playerid,red,"ERROR: You must log in before spawning.");
        return 0; //Making sure the player won't spawn.
    }
    //Player is logged, so they sawn.
    return 1;
}
You need to return 0 so the player can't spawn.
Reply


Messages In This Thread
OnPlayerSpawn problem - by Tanush123 - 23.10.2011, 15:34
Re: OnPlayerSpawn problem - by Cameltoe - 23.10.2011, 15:35
Re: OnPlayerSpawn problem - by Tanush123 - 23.10.2011, 15:38
Re: OnPlayerSpawn problem - by .:Kaos:. - 23.10.2011, 15:39
Re: OnPlayerSpawn problem - by Tanush123 - 23.10.2011, 15:43
Re: OnPlayerSpawn problem - by .:Kaos:. - 23.10.2011, 15:49
Re: OnPlayerSpawn problem - by Tanush123 - 23.10.2011, 15:52

Forum Jump:


Users browsing this thread: 5 Guest(s)