09.04.2015, 09:38
Код:
CMD:carbreakin(playerid, params[]) { new Float: vX, Float: vY, Float: vZ; for(new i=0; i<MAX_VEHICLES; i++) { 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"); } else return SendClientMessage(playerid, COLOR_LIGHTRED, "You're near to car!"); } } return 1; }