11.06.2014, 16:20
(
Последний раз редактировалось DarknessKnight; 11.06.2014 в 17:22.
)
This is the code i use and when i do /deletevehicles its not deleting the cars
HELP ME FIX IT PLEASE :P
and i meant if you can create me one , thanks
HELP ME FIX IT PLEASE :P
Код:
CMD:deletecars(playerid, params[]) { if(PlayerInfo[playerid][AdminLevel] >= 1) { for(new v=0;v<MAX_VEHICLES;v++) if(!VehicleOccupied(v)) EraseVeh(v); SendClientMessage(playerid, COLOR_GREY, "All Unoccipied Vehicles Deleted!"); } else return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be atleast Admin Level 1 to use this command"); return 1; } forward EraseVeh(vehicleid); public EraseVeh(vehicleid) { for(new i=0;i<MAX_PLAYERS;i++) { new Float:X,Float:Y,Float:Z; if(IsPlayerInAnyVehicle(i)) { RemovePlayerFromVehicle(i); GetPlayerPos(i,X,Y,Z); SetPlayerPos(i,X,Y+3,Z); } SetVehicleParamsForPlayer(vehicleid,i,0,1); } SetTimerEx("VehRes",1500,0,"i",vehicleid); }