SA-MP Forums Archive
checkpoint help :S - 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 help :S (/showthread.php?tid=231877)



checkpoint help :S - THE_KNOWN - 26.02.2011

ok till now i had no probs with checkpoints but now i do. all my other checkpoints work but today i tried adding checkpoints to 24-7 shops in ls. they appear but they dont do any thing on stepping onto them :S .

Код:
new shop;
shop=CreateDynamicCP(-30.5400,-28.8732,1003.5573,1.0,-1,-1,-1,5);

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
	if(IsPlayerInDynamicCP(playerid, checkpointid))
		{
                SendClientMessage(playerid,red,"testing");
                }
        return 1;
}
i use the same way for all my other cps and they work!. idk whats wrong with this one :S.

all other cps are under IsPlayerInDynamicCP but i removed them to paste sthe code here =P


Re: checkpoint help :S - MP2 - 26.02.2011

pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
    SendClientMessage(playerid, red, "testing");
    return 1;
}
They're obviously in the checkpoint if the callback for when they enter the checkpoint is called. That's like checking if a a player is dead under OnPlayerDeath.


Re: checkpoint help :S - MP2 - 26.02.2011

-removed: quoted instead of modify..-


Re: checkpoint help :S - THE_KNOWN - 26.02.2011

but still the cp doesnt respond :S


Re: checkpoint help :S - THE_KNOWN - 26.02.2011

i have 10 cps atm will that make a prob?


Re: checkpoint help :S - THE_KNOWN - 27.02.2011

bump