19.11.2018, 20:53
i wanna to teleport to a position but idk about cmds anyone know?
CMD:teleport(playerid, params[]){
SetPlayerPos(playerid, your x y and z coordinates);
SetPlayerInterior(playerid, interior); // only if you teleport in interior, set the interior id
return 1;
}
CMD:teleport(playerid, params[]){
SetPlayerPos(playerid, 1480.27161, -1642.37793, 13.15613);
return 1;
}
CMD:gotopos(playerid, params[])
{
new Float:x, Float:y, Float:z, interiorid;
if(sscanf(params, "fffI(0)", x, y, z, interiorid))
{
return SendClientMessage(playerid, -1, "/gotopos [x] [y] [z] [interior]"); //default interior is pointed as 0
}
SetPlayerPos(playerid, x, y, z);
SetPlayerInterior(playerid, interiorid);
return 1;
}
pawn Код:
|