Quote:
Originally Posted by CodyCummings
pawn Код:
if(strcmp(cmdtext, "/destroycar", true) == 0) { if(!IsPlayerAdmin(playerid)) return 1; new Float:X, Float:Y, Float:Z; for(new i = 0; i < MAX_VEHICLES; i++) { GetVehiclePos(i, X, Y, Z); if(IsPlayerInRangeOfPoint(playerid, 10.0, X, Y, Z)) { DestroyVehicle(i); } } return 1; }
|
Good but I only want it to work when I'm inside the car. What I have to do?