21.04.2010, 05:32
Код:
if(!strcmp(cmdtext,"/teleport",true)) { if(IsPlayerInAnyVehicle(playerid)) { if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { SetVehiclePos(GetPlayerVehicleID(playerid), -239.2781,132.0149,1.3720); SetVehicleZAngle(GetPlayerVehicleID(playerid),285.4021); } else { SendClientMessage(playerid, 0xFF000FF, "ERROR: You need to be the driver!"); return 1; } } else { SetPlayerPos(playerid, -239.2781,132.0149,1.3720); SetPlayerFacingAngle(playerid, 285.4021); } return 1; }