Checkpoint Teleport another player -
exf - 20.09.2014
public OnPlayerEnterCheckpoint(playerid)
{
switch(getCheckpointType(playerid))
{
case CP_V1: {
for(new i;i<MAX_PLAYERS;i++)
if( GetPlayerTeam(playerid) == v1 )
{
new Float
![angry](images/smilies/mad.gif)
, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid,369.3559,-194.6116,1044.2200);
}
}
}
return 1;
}
Mode, which creates hit the wall
I want to teleport to another player, not in his own radius
What's the problem
![Huh?](images/smilies/confused.gif)
Is there a function that can teleport to another player designated place
![Huh?](images/smilies/confused.gif)
Teleport other specific person
Re: Checkpoint Teleport another player -
AmirRFCNR - 20.09.2014
U want if playerid enter checkpoint teleport to i ?
So change it to :
GetPlayerPos(i, x, y, z);
SetPlayerPos(playerid, x+2, y+2, z+2);
Re: Checkpoint Teleport another player -
exf - 21.09.2014
Good code, thank you
The full range of tests was able to escape
public OnPlayerEnterCheckpoint(playerid)
{
switch(getCheckpointType(playerid))
{
case CP_V1: {
for(new i;i<MAX_PLAYERS;i++)
if( GetPlayerTeam(playerid) == v1 )
if(IsPlayerInRangeOfPoint(playerid,500,381.7581,-193.8507,1044.2200))
{
new Float
![angry](images/smilies/mad.gif)
, Float:y, Float:z;
GetPlayerPos(i, x, y, z);
SetPlayerPos(i,-2195.8057,-7791.4160,18.7144);
SetPlayerInterior(playerid, 0);
}
}
}
return 1;
}
Re: Checkpoint Teleport another player -
Goldac - 21.09.2014
for(new i = 0; i<MAX_PLAYERS;i++)