11.03.2012, 13:47
pawn Код:
forward removcar(playerid);
public removcar(playerid)
{
new vehicleid = GetPlayerVehicleID(playerid);
TogglePlayerControllable(playerid,1);
if(Spectating[playerid][0] < 0) return 1;
if(Carid < 0) return 1;
SetVehicleParamsForAll(Buylist[Spectating[playerid][0]][Carid],0,0);
Spectating[playerid][0]=90;
SetVehicleToRespawn(vehicleid);
RemovePlayerFromVehicle(playerid);
return 1;
}