checkpoint response - 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 response (
/showthread.php?tid=238672)
checkpoint response -
THE_KNOWN - 12.03.2011
I have a problem. when i enter a checkpoint nothing happens at all. but im sure that it know that i entered the checkpoint as i have tried to put printf("%d",checkpointid) under onplayerenterdynamiccp. now the if code is
Код:
if(checkpointid == npcp)
{
DestroyDynamicCP(npcp);
SendClientMessage(playerid,0xA9C4E4FF,"please press 'F' to call the elevator and wait for it to come. after that please go inside and press 'F'.");
}
help
Re: checkpoint response -
MP2 - 12.03.2011
I take it you're using Incognito's streamer? Perhaps it would be better to post in the topic for that plugin, you may get a better response.
Could you show us the full code? i.e setting the CP.
Re: checkpoint response -
antonio112 - 12.03.2011
Try something like this:
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if( IsValidDynamicCP( npcp ) )
{
DestroyDynamicCP( npcp );
SendClientMessage(playerid,0xA9C4E4FF,"please press 'F' to call the elevator and wait for it to come. after that please go inside and press 'F'.");
}
return 1;
}
It works for me.
Re: checkpoint response -
THE_KNOWN - 12.03.2011
ok gonna try
Re: checkpoint response -
THE_KNOWN - 12.03.2011
didnt work