23.08.2016, 19:03
Код:
CMD:datm(playerid,params[]) { new atm[250], value = strval(params); if(IsPlayerAdmin(playerid)) { if(isnull(value)) return SendClientMessage(playerid, red, "USAGE: /datm [ATM ID]"); format(atm, sizeof(atm), "ATMs/atmid%d",value); if(dini_Exists(atm)) { dini_Remove(atm); DestroyDynamicObject(ATMInfo[value][aObje]); catm-=1; UpdateDynamic3DTextLabelText(ATMInfo[value][aLabel],0xFF0000FF,""); DestroyDynamicMapIcon(ATMInfo[value][aMicon]); } else SendClientMessage(playerid, red, "ERROR: There's no ATM Pranch Exists on our Database with this ID"); } else SendClientMessage(playerid, -1, ""); return 1; }