10.06.2012, 17:31
When i Click a player in the tab menu, how to teleport to him ?
Can anyone help me?
Can anyone help me?
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new
world,interior,
Float:x, Float:y, Float:z, Float:angle;
world = GetPlayerVirtualWorld(clickedplayerid);
interior = GetPlayerInterior(clickedplayerid);
GetPlayerPos(clickedplayerid, x, y, z);
GetPlayerFacingAngle(clickedplayerid, angle);
SetPlayerPos(playerid, x, y, z+0.2);
SetPlayerFacingAngle(playerid, angle);
SetCameraBehindPlayer(playerid);
SetPlayerVirtualWorld(playerid, world);
SetPlayerInterior(playerid, interior);
return 1;
}
Is this right ?
pawn Код:
|