Advertisement
PaulCastellano

tony

Sep 10th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
  2. {
  3. if(issuerid != INVALID_PLAYER_ID)
  4. {
  5. if(IgracPolicajac(issuerid))
  6. {
  7. if(GetPlayerWeapon(issuerid) == 23)
  8. {
  9. new string[128];
  10. if(PlayerInfo[playerid][pTrazeniLevel] == 0) return SCM(issuerid,-1,""PLAVA"[GRESKA] "SIVA"Igrac nema Wanted Level!");
  11. if(IgracPolicajac(playerid)) return SCM(issuerid,-1,""PLAVA"INFO | "SIVA"Ne mozes tazovati PD!");
  12. if(PlayerInfo[issuerid][pRank] == 0) return SCM(issuerid,-1,""PLAVA"INFO | "SIVA"Suspendovan si!");
  13. if(AdminDuty[playerid] == 1) return SCM(issuerid,-1,""PLAVA"INFO | "SIVA"Taj igrac je Admin na duznosti!");
  14. format(string, sizeof(string), "%s puca tazerom na %s-a i pogadja ga.", GetName(issuerid) ,GetName(playerid));
  15. ProxDetector(20.0, issuerid, string, PROX,PROX,PROX,PROX,PROX);
  16. TogglePlayerControllable(playerid, 0); IgracTazovan[playerid] = 1;
  17. TazerTimer[playerid] = SetTimerEx("TazovanTajmer", 15000, false, "i", playerid);
  18. OnePlayAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
  19. }
  20. }
  21. }
  22. return 1;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement