26.12.2014, 13:06
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![Huh?](images/smilies/confused.gif)
{
new Float
osition[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![Huh?](images/smilies/confused.gif)
The entire class team to be summoned to an infinite loop
{
switch(getCheckpointType(playerid))
{
case CP_V1: {
if( GetPlayerTeam(playerid) == v1 )
if(IsPlayerInRangeOfPoint(playerid,500,381.7581,-193.8507,1044.2200)) //Does this code work
![Huh?](images/smilies/confused.gif)
{
new Float
![Tongue](images/smilies/razz.gif)
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
![Huh?](images/smilies/confused.gif)
The entire class team to be summoned to an infinite loop