Checking if the player exists?
#1

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?
Reply
#2

Nevermind fixed it already with variables
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)