Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. for(new f; f < MAX_ATMS; f++) {
  2. if(IsPlayerInRangeOfPoint(playerid, 2.0, AtmInfo[f][fATMPos][0], AtmInfo[f][fATMPos][1], AtmInfo[f][fATMPos][2])) {
  3. if(PlayerInfo[playerid][pLevel] < 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need level 3 to do this.");
  4. if(IsACop(playerid)) return SCM(playerid,COLOR_WHITE,"You are a cop.");
  5. if(PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't rob the atm when you have wanted.");
  6. if(AtmResetTimer[playerid] != 0) return SCM(playerid, COLOR_GREY, "Acest ATM a fost deja jefuit!");
  7. if(PlayerInfo[playerid][pRob] >= 10 && PlayerInfo[playerid][pPremiumAccount] == 0 || PlayerInfo[playerid][pRob] >= 8 && PlayerInfo[playerid][pPremiumAccount] > 0) {
  8. AtmResetTimer[playerid] = 180;
  9. if(PlayerInfo[playerid][pPremiumAccount] == 0)
  10. {
  11. PlayerInfo[playerid][pRob] -= 8;
  12. }
  13. else if(PlayerInfo[playerid][pPremiumAccount] > 0)
  14. {
  15. PlayerInfo[playerid][pRob] -= 6;
  16. }
  17. ApplyAnimation(playerid, "SWORD", "sword_4", 4.1, 1, 0, 0, 0, 0);
  18. TogglePlayerControllable(playerid, 0);
  19. SetTimerEx("SpargeAtm", 6300, false, "i", playerid);
  20. DestroyDynamicObject(AtmInfo[f][rObjectId]);
  21. 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);
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement