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



Checkpoint Escape - exf - 26.12.2014

public OnPlayerEnterCheckpoint(playerid)
{
switch(getCheckpointType(playerid))
{
case CP_V1: {
if( GetPlayerTeam(playerid) == v1 )
if(IsPlayerInRangeOfPoint(playerid,500,381.7581,-193.8507,1044.2200)) //Does this code work
{
new Floatosition[3]; // Float-type variable to save the player's coordinates in three declarations (x,y,z)
GetPlayerPos(playerid, position[0], position[1], position[2]); // Player coordinates wanted
for(new i = 0; i < MAX_PLAYERS; i++) // I don't know any other way to
{
SetPlayerPos(i, position[0], position[1], position[2]); // Escape to the specified coordinates
SetPlayerInterior(i, GetPlayerInterior(playerid)); // Interior
SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(playerid)); // Virtual worlds
}
SendClientMessageToAll(0xEEFF00AA, "The test team escape!");
}
}
}
}
return 1;
}

Gets the team colleagues escape system, which

The entire class will be hauled into the infinite iteration team members

I was ready for the municipal year goto ttongdoem

Experiment with NPCs did it continue, there is an infinite summons What

The entire class team to be summoned to an infinite loop