How to make a checkpoint at a location? - 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: How to make a checkpoint at a location? (
/showthread.php?tid=439145)
How to make a checkpoint at a location? -
Geeboi_Mehdi - 24.05.2013
how i can make a checkpoint at this location
pawn Код:
414.9907,2534.9116,19.1484
also how can i make can i make a dialog pop up after entering the checkpoint
Re: How to make a checkpoint at a location? -
Hoborific - 24.05.2013
https://sampwiki.blast.hk/wiki/OnPlayerEnterCheckpoint
Re: How to make a checkpoint at a location? -
Geeboi_Mehdi - 24.05.2013
This dont help me ...
Re: How to make a checkpoint at a location? -
Mr.Valdez - 24.05.2013
it depends what you want it for like if you want it on player spawn you put it under public onplayerspawn(playerid)
or make a command(ZCmd)
Код:
CMD:changeme
{
if(IsPlayerInRangeOfPoint(playerid,5,0,0,0))
{
ShowPlayerDialog
}
return 1;
}
Then put the effect under
Код:
public OnPlayerEnterCheckpoint (playerid)
{
if(IsPlayerInRangeOfPoint(playerid,5,0,0,0))
{
DisablePlayerCheckPoint(playerid);
ShowPlayerDialog(blah blah blah blah etc)
Re: How to make a checkpoint at a location? -
Geeboi_Mehdi - 27.05.2013
thanks mate