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



cp check - Lajko1 - 14.11.2009

i forget how i can check if player enter in example: CP1 what i must write under on player enter cp , something like

if("checker" == CP1)
{
sendclientmessage(playerid,color,"i forget how to do that");
}

or something like this can you tell the right code please ?


Re: cp check - dice7 - 14.11.2009

https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
or did you mean
https://sampwiki.blast.hk/wiki/OnPlayerPickUpPickup


Re: cp check - Lajko1 - 14.11.2009

oOOOO god dont post me this wiki cuz i was searching there i want CHECKER FOR CHECKPOINT!

like

if(BLABALBAL == CP1)
{
rest of code
}

how i can do that ''if cp == CP 1'' it will happened something...

anyway ty for help but you dont udnerstand corectly what i mean


Re: cp check - Tigerbeast11 - 14.11.2009

Quote:
Originally Posted by Lajko1
oOOOO god dont post me this wiki cuz i was searching there i want CHECKER FOR PICKUP!

like

if(BLABALBAL == CP1)
{
rest of code
}

how i can do that ''if cp == CP 1'' it will happened something...

anyway ty for help but you dont udnerstand corectly what i mean
do u want checkpoint or pickup?


Re: cp check - Lajko1 - 14.11.2009

ops my mistake CHECKPOINT*


Re: cp check - Lajko1 - 14.11.2009

i am using dragsta cps atm but wiki page about this is down so i dont know how should i make this


Re: cp check - Lajko1 - 14.11.2009

fixed , ty the true answer was

''If{streamid == ArmsDJob)''
{
//rest of code
}

ty for help