Checkpoint - 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 (
/showthread.php?tid=235622)
Checkpoint -
Alex_Obando - 06.03.2011
I need a red checkpoint in this cords:
AddPlayerClass(1,2957.0884,-1485.0145,1.6247,262.0636,0,0,0,0,0,0); // (/save)
So when you enter to it say:
Welcome to the checkpoint.
Can some one explain me how to put one?
Re: Checkpoint -
dr.pepper - 06.03.2011
First read this Wiki:
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Second:
PHP код:
SetPlayerCheckpoint(playerid, 2957.0884, -1485.0145, 1.6247, 262.0636,3.0); // (/save)
Re: Checkpoint -
Marricio - 06.03.2011
pawn Код:
public OnPlayerEnterCheckPoint(....)
{
SendClientMessage(playerid,-1,"Welcome to the checkpoint!");
}
Re: Checkpoint -
dr.pepper - 06.03.2011
Quote:
Originally Posted by Marricio
pawn Код:
public OnPlayerEnterCheckPoint(....) { SendClientMessage(playerid,-1,"Welcome to the checkpoint!"); }
|
And you need this, I didn't read the second part you asked.
Respuesta: Checkpoint -
Alex_Obando - 06.03.2011
Ok, its done, but I want that if im not near it then the red spot dont show on the hud D:
Re: Checkpoint -
Lorrden - 06.03.2011
Use IsPlayerInRangeOfPoint in a Timer to check whether or not the player is close to the checkpoint
Respuesta: Checkpoint -
Alex_Obando - 06.03.2011
How I can Make this:
If the player enter to the checkpoint remove $7000 to the player
If the player doesn't have it the return: You have insufficient founds
Respuesta: Checkpoint -
Alex_Obando - 06.03.2011

?
Re: Checkpoint -
Lorrden - 06.03.2011
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(GetPlayerMoney(playerid) < 7000) return GivePlayerMoney(playerid, -7000);
SendClientMessage(playerid, 0xFFFFFFFF, "You have insufficient founds");
}