09.04.2015, 09:49
Код:
CMD:carbreakin(playerid, params[]) { new Float: vX, Float: vY, Float: vZ ; for(new i = 0; i != MAX_VEHICLES; i++) { if (!IsValidVehicle(vehicleid)) continue; GetVehiclePos(i, vX, vY, vZ); if(IsPlayerInRangeOfPoint(playerid, 10.0, vX, vY, vZ)) { SendClientMessage(playerid, COLOR_LIGHTRED, "You're near a car and the breakin bit needs adding"); break; } else { SendClientMessage(playerid, COLOR_LIGHTRED, "You're not near to car!"); } } return 1; }