OnPlayerRequestSpawn
#5

Even though I'm 99% sure, I just test-compiled it under OnPlayerRequestSpawn callback and it worked fine. Check that you haven't got too many/too little brackets { }.

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(IsLogged[playerid] == 1)
    {
        return 1;
    }
    else
    {
        SendClientMessage(playerid, COLOR_YELLOW, "ERROR: You can't spawn,maybe you arent registered or logged in.Use /register or /login");
        return 0;
    }
}
Reply


Messages In This Thread
OnPlayerRequestSpawn - by Face9000 - 18.12.2010, 17:16
Re: OnPlayerRequestSpawn - by Benjo - 18.12.2010, 17:47
Re: OnPlayerRequestSpawn - by Face9000 - 18.12.2010, 17:58
Re: OnPlayerRequestSpawn - by Mean - 18.12.2010, 18:00
Re: OnPlayerRequestSpawn - by Benjo - 18.12.2010, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)