SA-MP Forums Archive
Question - 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: Question (/showthread.php?tid=470742)



Question - DarkLored - 19.10.2013

SOLVED


Re: Question - KingHual - 19.10.2013

Use the else statement...?


Re: Question - Konstantinos - 19.10.2013

pawn Код:
if(IsPlayerInDynamicCP(playerid,Checkpoint[5]))
{
    // player is in checkpoint
}
else
{
    // player is not in checkpoint
}
or if you don't want to check if they are in.
pawn Код:
if(!IsPlayerInDynamicCP(playerid,Checkpoint[5]))
{
    // player is not in checkpoint
}



Re: Question - DarkLored - 19.10.2013

Thanks +1Reped