Advertisement
DexyHendrix

Untitled

Dec 6th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <paused>
  2.  
  3. forward OnPlayerPause(playerid);
  4. forward OnPlayerUnPause(playerid);
  5.  
  6. public OnPlayerPause(playerid)
  7. {
  8. if(WantedLevel[playerid] > 0 || BankaWL[playerid] > 0)
  9. {
  10. wantedtajmerafk[playerid] = SetTimerEx("AFKWantedTajmer",10000, false, "i", playerid);
  11. SetPVarInt(playerid,"AFKSaWantedom",1);
  12. }
  13. SetPVarInt(playerid,"ESCTajmer",1);
  14. SetPlayerChatBubble(playerid, "[KORISTI ESCAPE MENI]", COLOR_LIGHTGREEN, 40.0, 6600000);
  15. return 0;
  16. }
  17.  
  18.  
  19. public OnPlayerUnPause(playerid)
  20. {
  21. SetPlayerChatBubble(playerid, "", COLOR_WHITE, 40.0, 500);
  22. if(WantedLevel[playerid] > 0)
  23. {
  24. SetPVarInt(playerid,"AFKSaWantedom",0);
  25. KillTimer(wantedtajmerafk[playerid]);
  26. }
  27. if(GetPVarInt(playerid,"ESCTajmer") == 1)
  28. {
  29. SetPVarInt(playerid,"ESCTajmer",0);
  30. }
  31. return 0;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement