SA-MP Forums Archive
Question On Code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question On Code (/showthread.php?tid=219646)



Question On Code - gtapolicemods - 01.02.2011

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);



Re: Question On Code - Vince - 01.02.2011

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


Re: Question On Code - bartje01 - 01.02.2011

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.


Re: Question On Code - gtapolicemods - 01.02.2011

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