02.10.2011, 16:39
Код HTML:
if(strcmp(cmd, "/scrapcar", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { IsPlayerInRangeOfPoint(playerid, 214.973251, 208.995681, 27.271835, 22.040054) { PlayerInfo[playerid][pMaterials] + 60; PlayerActionMessage(playerid,15.0,"Your car is cut into 60 pieces of scrap metal"); } else { SendClientMessage(playerid, COLOR_WHITE, "You must be at the warehouse to scrap your car"); } else { SendClientMessage(playerid, COLOR_WHITE, "[ERROR:] You must be driving a car to scrap it."); } return 1; }