Question On Code
#1

Ok here is my mass respawn code

Код:
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;
}
Now I want to change it to where it will respawn all the vehicles EXCEPT DealerVehicle

Код:
if( IsDealerVehicle(vehicleid)){
new model = GetVehicleModel(vehicleid);
Reply
#2

pawn Код:
if(IsVehicleEmpty(v) && !IsDealerVehicle(v)){
        SetVehicleToRespawn(v);
    }
(And wtf is this bullcrap. Everytime I post something, the forums go down ... )
Reply
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
if(IsVehicleEmpty(v) && !IsDealerVehicle(v)){
        SetVehicleToRespawn(v);
    }
(And wtf is this bullcrap. Everytime I post something, the forums go down ... )
The forum has some crashes lately.
I'm not sure why though. Maybe DDOS attacks from a community.
Reply
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
pawn Код:
if(IsVehicleEmpty(v) && !IsDealerVehicle(v)){
        SetVehicleToRespawn(v);
    }
(And wtf is this bullcrap. Everytime I post something, the forums go down ... )
Thank you very much Vince
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)