/rescueme
#1

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.
Reply
#2

Код:
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.
Reply
#3

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)