Advertisement
StefkeZ

Untitled

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