17.10.2015, 09:08
If I type the command [/repairveh], put all the server in Paint
Код HTML:
if(strcmp(cmd, "/repairveh", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(5.0, playerid, -1903.1232,275.5934,41.0391)) { for(new i = 0; i < MAX_PLAYERS; i++) { new vehicle; vehicle = GetPlayerVehicleID(i); DisableRemoteVehicleCollisions(i, 1); SetTimer("RepairVeh", 4500, false); SetVehiclePos(vehicle, -1904.4136,283.7806,40.7740); if(PlayerData[i][pPbiskey] == 0) { GameTextForPlayer(i, "~w~Nici o taxa pentru seful.", 5000, 3); return 1; } if (GetPlayerCash(i) < SBizzData[13][sbEntranceCost]) { SendClientMessage(i, COLOR_GRAD2, "Nu ai atatia bani!"); return 1; } GivePlayerCash(i,-SBizzData[13][sbEntranceCost]); SBizzData[13][sbTill] += SBizzData[13][sbEntranceCost]; ExtortionSBiz(13, SBizzData[13][sbEntranceCost]); SBizzData[13][sbProducts]--; } } } }