Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <paused>
- forward OnPlayerPause(playerid);
- forward OnPlayerUnPause(playerid);
- public OnPlayerPause(playerid)
- {
- if(WantedLevel[playerid] > 0 || BankaWL[playerid] > 0)
- {
- wantedtajmerafk[playerid] = SetTimerEx("AFKWantedTajmer",10000, false, "i", playerid);
- SetPVarInt(playerid,"AFKSaWantedom",1);
- }
- SetPVarInt(playerid,"ESCTajmer",1);
- SetPlayerChatBubble(playerid, "[KORISTI ESCAPE MENI]", COLOR_LIGHTGREEN, 40.0, 6600000);
- return 0;
- }
- public OnPlayerUnPause(playerid)
- {
- SetPlayerChatBubble(playerid, "", COLOR_WHITE, 40.0, 500);
- if(WantedLevel[playerid] > 0)
- {
- SetPVarInt(playerid,"AFKSaWantedom",0);
- KillTimer(wantedtajmerafk[playerid]);
- }
- if(GetPVarInt(playerid,"ESCTajmer") == 1)
- {
- SetPVarInt(playerid,"ESCTajmer",0);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement