22.08.2009, 08:03
This could be useful, if you want all vehicles on your server never to respawn:
I think SetVehicleToRespawn wont work after this, so you need to recreate the vehicle...
whatever, have fun.
pawn Код:
new carro[MAX_VEHICLES];
carro[0] = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
carro[1] = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
carro[2] = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
carro[3] ...
//if you want vehicle never to respawn, use -1 in respawn_delay
//and use this callback
public OnVehicleSpawn(vehicleid) {
for(new veh; veh < MAX_VEHICLES; veh++) {
if(vehicleid == carro[veh]) {
DestroyVehicle(carro[veh]);
break;
}
}
return 1;
}
whatever, have fun.