05.06.2017, 14:15
Top script
And replace with code:
Код:
#define function%0(%1) forward%0(%1); public%0(%1)
Код:
function OnPlayerCommandText(playerid,cmdtext[]) { if(strcmp(cmd, "/racetrack", true) == 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 1; }