checkpoint enter - 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: checkpoint enter (
/showthread.php?tid=222666)
checkpoint enter -
hadzx - 07.02.2011
im using Incognito streamer and made checkpoints
Код:
CreateDynamicCP(1524.2124, -1694.8369, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 1
CreateDynamicCP(1524.2461, -1674.1271, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 2
but where would i make it so when you enter these checkpoints its says text is it like
Код:
If(thecp == 1)
{
//blah
}
?
thanks and heres the enter code
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
return 1;
}
Re: checkpoint enter -
Stigg - 07.02.2011
mycp1 = CreateDynamicCP(1524.2124, -1694.8369, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 1
mycp2 = CreateDynamicCP(1524.2461, -1674.1271, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 2
if(checkpointid == mycp1)
{
//do something
}
ECT...
Peace...
Re: checkpoint enter -
hadzx - 07.02.2011
Quote:
Originally Posted by Stigg
mycp1 = CreateDynamicCP(1524.2124, -1694.8369, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 1
mycp2 = CreateDynamicCP(1524.2461, -1674.1271, 13.5468, 1.0, 0, 0, 0,100.0);//checkpoint 2
if(checkpointid == mycp1)
{
//do something
}
ECT...
Peace...
|
thanks works
<3
Re: checkpoint enter -
Stigg - 07.02.2011
No prob's m8.
Peace...