SA-MP Forums Archive
Critical Error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Critical Error (/showthread.php?tid=290745)



Critical Error - Super_Panda - 16.10.2011

I want that if is player admin and if is he is not logged in and he wanna spawn send that gametext

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(IsPlayerLogged(playerid) == 0 && if(!IsPlayerAdminEx(playerid))
    {
        GameTextForPlayer(playerid, "~r~You need to loggin first!", 1500, 3);
    }
   
    return 1;
}



Re: Critical Error - Lorenc_ - 16.10.2011

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(IsPlayerLogged(playerid) == 0 && !IsPlayerAdminEx(playerid))
    {
        GameTextForPlayer(playerid, "~r~You need to loggin first!", 1500, 3);
    }
   
    return 1;
}