SA-MP Forums Archive
/rescueme - 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: /rescueme (/showthread.php?tid=132643)



/rescueme - Chrham_2 - 08.03.2010

Hello!
Im creating a rescue team faction for my RP server.
But... on my /rescueme I want it to add a checkpoint on the player who execute /rescueme command, and the checkpoint should be shown to everyone that has "(JobRescue[playerid] == 1);"
Unfortunately I am not so good in GetPlayerPos and Checkpoints to a specific faction.
If you could help me, I would be very pleased.

- Thank you.


Re: /rescueme - lameguy - 08.03.2010

Код:
new Float:PX, Float:PY, Float:PZ;
GetPlayerPos(playerid, PX, PY, PZ);

for(new i = 0; i < MAX_PLAYERS; i ++)
{
	If(JobRescue[i] == 1)
	{
		CreateCheckpoint(playerid, PX, PY, PZ, size, view_distanse); //or what ever your checkpoint streamer format is
	}
}
That should help you.


Re: /rescueme - Chrham_2 - 08.03.2010

Quote:
Originally Posted by Johnson_boy
Код:
new Float:PX, Float:PY, Float:PZ;
GetPlayerPos(playerid, PX, PY, PZ);

for(new i = 0; i < MAX_PLAYERS; i ++)
{
	If(JobRescue[i] == 1)
	{
		CreateCheckpoint(playerid, PX, PY, PZ, size, view_distanse); //or what ever your checkpoint streamer format is
	}
}
That should help you.
Thank you so much!