25.08.2011, 15:04
You cant teleport to Z,Y,Z location if you dont have command for that.
You can make teleport command like.
Btw, Berlo something i like your avatar
You can make teleport command like.
pawn Код:
if(strcmp(cmdtext, "/teleport", true)==0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid), X,Y,Z);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 178.7448);
SetCameraBehindPlayer(playerid);
}
else
{
SendClientMessage(playerid,0xFFFF00AA, "ERROR: You need to be the driver!");
}
}
else
{
SetPlayerPos(playerid, X,Y,Z);
SetPlayerFacingAngle(playerid, 110.5445);
SetCameraBehindPlayer(playerid);
}
return 1;
}
Btw, Berlo something i like your avatar