Checkpoints? - 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: Checkpoints? (
/showthread.php?tid=158057)
Checkpoints? -
ls200 - 08.07.2010
how i make checkpoints? + how to make it only appears when u type a command and it removes itself when you are at the checkpoint?
Re: Checkpoints? -
Adil - 08.07.2010
pawn Код:
if(strcmp(cmdtext,"/cp",true,10)==0)
{
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,0xFFFFFFFF,"Congratz, you made it to the checkpoint");
return 1;
}
Re: Checkpoints? -
ls200 - 08.07.2010
Quote:
Originally Posted by Adil
pawn Код:
if(strcmp(cmdtext,"/cp",true,10)==0) { SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3); return 1; }
pawn Код:
public OnPlayerEnterCheckpoint(playerid) { DisablePlayerCheckpoint(playerid); SendClientMessage(playerid,0xFFFFFFFF,"Congratz, you made it to the checkpoint"); return 1; }
|
thanks but what does the last 3 in this line means
Код:
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
Re: Checkpoints? -
BP13 - 08.07.2010
Quote:
Originally Posted by ls200
thanks but what does the last 3 in this line means
Код:
SetPlayerCheckpoint(playerid, 0.0, 0.0, 0.0, 3);
|
(playerid,Float
![angry](images/smilies/mad.gif)
,Float:y,Float:z,Float
![confused](images/smilies/confused.gif)
ize)
Or go here cause of the similes...
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Re: Checkpoints? -
Adil - 08.07.2010
It means the area the checkpoint covers, the red circle space.