05.06.2017, 14:14
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/racetrack", cmdtext, true, 10) == 0) { SetPlayerInterior(playerid,0); if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { LinkVehicleToInterior(GetPlayerVehicleID(playerid),0); SetVehiclePos(GetPlayerVehicleID(playerid),-521.0,-3643.0,7.0); SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0); } else { SetPlayerPos(playerid,-521.0,-3643.0,7.0); SetPlayerFacingAngle(playerid,0.0); } return 1; } return 0; }