Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(new f; f < MAX_ATMS; f++) {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, AtmInfo[f][fATMPos][0], AtmInfo[f][fATMPos][1], AtmInfo[f][fATMPos][2])) {
- if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need level 3 to do this.");
- if(IsACop(playerid)) return SCM(playerid,COLOR_WHITE,"You are a cop.");
- if(PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't rob the atm when you have wanted.");
- if(AtmResetTimer[playerid] != 0) return SCM(playerid, COLOR_GREY, "Acest ATM a fost deja jefuit!");
- if(PlayerInfo[playerid][pRob] >= 10 && PlayerInfo[playerid][pPremiumAccount] == 0 || PlayerInfo[playerid][pRob] >= 8 && PlayerInfo[playerid][pPremiumAccount] > 0) {
- AtmResetTimer[playerid] = 180;
- if(PlayerInfo[playerid][pPremiumAccount] == 0)
- {
- PlayerInfo[playerid][pRob] -= 8;
- }
- else if(PlayerInfo[playerid][pPremiumAccount] > 0)
- {
- PlayerInfo[playerid][pRob] -= 6;
- }
- ApplyAnimation(playerid, "SWORD", "sword_4", 4.1, 1, 0, 0, 0, 0);
- TogglePlayerControllable(playerid, 0);
- SetTimerEx("SpargeAtm", 6300, false, "i", playerid);
- DestroyDynamicObject(AtmInfo[f][rObjectId]);
- AtmInfo[f][rObjectId] = CreateDynamicObject(2943, AtmInfo[f][fATMPos][0], AtmInfo[f][fATMPos][1], AtmInfo[f][fATMPos][2]+0.6, AtmInfo[f][fATMPosRot][0], AtmInfo[f][fATMPosRot][1], AtmInfo[f][fATMPosRot][2], -1, -1, -1, 500.0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement