Delete empty cars [1 sec help please] [+REP] - 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)
+--- Thread: Delete empty cars [1 sec help please] [+REP] (
/showthread.php?tid=549636)
Delete empty cars [+REP For Helper] -
DarknessKnight - 07.12.2014
Can U Make this command to delete Empty Cars Only please?
+REP FOR HELPER
pawn Код:
COMMAND:deletecars(playerid, params[])
{
if (playerid == -1) SendClientMessageToAll(0xFFFFFFFF, "Cars Removed");
{
for( new veh; veh < MAX_VEHICLES; veh ++ )
{
DestroyVehicle( veh );
}
return 1;
}
}
Re: Delete empty cars [1 sec help please] [+REP] -
Rukka - 07.12.2014
They've solved this problem in this thread:
https://sampforum.blast.hk/showthread.php?tid=170947
Hope it works!
Re: Delete empty cars [1 sec help please] [+REP] -
SickAttack - 08.12.2014
You'll need the math plugin. Get it from here:
https://sampforum.blast.hk/showthread.php?tid=270508.
pawn Код:
COMMAND:deletecars(playerid, params[])
{
for(new i = 1; i < MAX_VEHICLES; i ++)
if(MPGetVehicleDriverCount(i) == 0) DestroyVehicle(i);
return 1;
}
Re: Delete empty cars [1 sec help please] [+REP] -
Doller - 08.12.2014
Show you error boards.
Re: Delete empty cars [1 sec help please] [+REP] -
DarknessKnight - 08.12.2014
Quote:
Originally Posted by SickAttack
|
Thanks