CreateDynamicCP - 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: CreateDynamicCP (
/showthread.php?tid=457382)
CreateDynamicCP -
morocco - 11.08.2013
Hi !!
pawn Код:
CPTEST = CreateDynamicCP(1182.5090,-1303.7557,-32.3814, 1, -1, -1, -1, 2);
forward OnPlayerEnterDynamicCheckpoint(playerid, streamid);
public OnPlayerEnterDynamicCheckpoint(playerid, streamid)
{
if(streamid == CPTEST)
{
SendClientMessage(playerid, 0,"It's work");
}
return 1;
}
But in game no send any message !
Re: CreateDynamicCP -
RajatPawar - 11.08.2013
That isn't the callback for streamer! The correct callback is:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, cpid)
The parameters could be wrong, but look up the list of callbacks in the streamer TOPIC.
Re : CreateDynamicCP -
Naruto_Emilio - 11.08.2013
Hm from what I see I think you f7 x 2, otherwise, change the streamer