SA-MP Forums Archive
Checking if the player exists? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Checking if the player exists? (/showthread.php?tid=268935)



Checking if the player exists? - lawonama - 14.07.2011

Hello all, i want if the player exists he just spawns at the position: Blablabla...
But if he doesnt exist then applyanimation + showtextdraw etc.
This is my code:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if (!dini_Exists(archivo))
    {
    SetPlayerPos(playerid, 1529.6,-1691.2,13.3);
    return 1;
    }
    else
    {
    ApplyAnimation(playerid,"SHOP","ROB_Loop_Threat",4.1,1,1,1,1,1);
    TextDrawShowForPlayer(playerid,lbt);
    TextDrawShowForPlayer(playerid,lbb);
    TextDrawShowForPlayer(playerid,choose_text);
    return 1;
    }
}
But even if im registered or not, he shows the textdraws . How to fix that?


Re: Checking if the player exists? - lawonama - 14.07.2011

Nevermind fixed it already with variables