01.02.2011, 22:03
Ok here is my mass respawn code
Now I want to change it to where it will respawn all the vehicles EXCEPT DealerVehicle
Код:
COMMAND:respawncars(playerid, params[]) { if(ADMIN(playerid) == 1){ for(new v = 1; v <= APPROX_VEHICLES; v++){ if(IsVehicleEmpty(v)){ SetVehicleToRespawn(v); }} SendMessageToAdmin("All uncommissionned server vehicles respawned."); } return 1; }
Код:
if( IsDealerVehicle(vehicleid)){ new model = GetVehicleModel(vehicleid);