Posts: 284
Threads: 77
Joined: Nov 2013
Quote:
Originally Posted by Aliassassin123456
........
Very bad code .... but np try this:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid) { SetTimerEx("DesVeh", 10000, 0, "i", vehicleid); return 1; }
forward DesVeh(vehid); public DesVeh(vehid) { for(new i;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if(IsPlayerInVehicle(i, vehid)) return 1; } } return DestroyVehicle(vehid); }
|
is there are difference between my code? because my problem is that even the above code working but still many cars , thanks!