27.03.2016, 02:09
Code:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Code:
forward ATM_TimeUpdater(); public ATM_TimeUpdater() { new uString[156]; for (new i = false; i <= MAX_ATM; i++){ if(ATMInfo[i][aTime] > 0){ ATMInfo[i][aTime]--; if(ATMInfo[i][aTime] <= 1){ format(uString,156,"{ffffff}%s(%i)\n{ffffff}State: {77c97d}Active", ATMInfo[i][aName], atm_class); Update3DTextLabelText(ATMInfo[i][aLabel], -1, uString); ATMInfo[i][aDurum] = true; ATMInfo[i][aTime] = 0; } } } return true; }
Code:
SetPVarInt(playerid, "ATMcalinanMiktar", (random(MAX_ATM_PARA))+MIN_ATM_PARA);
Code:
stock CreateATM(atmname[], Float:aaaX, Float:aaaY, Float:aaaZ, Float:aaaA){ atm_class++;
Code:
stock DestroyATM() atm_class = 1;