Guest User

Untitled

a guest
Dec 24th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. PlayerInfo[killerid][pUbistava]++; PlayerInfo[playerid][pSmrti]++;
  4. ResetPlayerWeapons(playerid); ResetujVar(playerid);
  5. ////////////////////////////////////////////////////////////
  6. if(IgracPolicajac(killerid))
  7. {
  8. PlayerInfo[killerid][pTrazeniLevel] = 0;
  9. SetPlayerWantedLevel(killerid,0);
  10. }
  11. ////////////////////////////////////////////////////////////
  12. if(!IgracPolicajac(killerid) && IsPlayerConnected(playerid))
  13. {
  14. PostaviWanted(killerid, "Ubistvo", "Nepoznat");
  15. }
  16. ////////////////////////////////////////////////////////////
  17. if(GetPlayerWantedLevel(killerid) > 6)
  18. {
  19. SetPlayerWantedLevel(killerid, 6);
  20. PlayerInfo[killerid][pTrazeniLevel] = 6;
  21. }
  22. ////////////////////////////////////////////////////////////
  23. if(GetPlayerWantedLevel(playerid) > 0)
  24. {
  25. new string[256];
  26. g_NovacMinus(playerid, GetPlayerWantedLevel(playerid)*400);
  27. SCMF(playerid, -1, ""ZUTA"[INFO] "CRVENA"Izgubili ste %d$ zbog umiranja sa wanted level-om "ZUTA"%d!", GetPlayerWantedLevel(playerid)*400, GetPlayerWantedLevel(playerid));
  28. SetPlayerWantedLevel(playerid, 0); PlayerInfo[playerid][pTrazeniLevel] = 0;
  29. format(string,sizeof(string),""CRVENA"[UP:RP] "SIVA"Igrac %s je ubijen/se ubio sa wanted level-om!",GetName(playerid));
  30. AdminGameMaster(-1,string);
  31. }
  32. ////////////////////////////////////////////////////////////
  33. if(IsPlayerConnected(killerid) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER)
  34. {
  35. new string[256];
  36. format(string,sizeof(string), ""CRVENA"[UP:RP Anti DB] "SIVA"Igrac %s (ID:%d) je uradio Drive By nad igracem %s (ID:%d)!", GetName(killerid), killerid, GetName(playerid), playerid);
  37. AdminGameMaster(-1, string);
  38. }
  39. ////////////////////////////////////////////////////////////
  40. if(IsPlayerConnected(killerid) && PlayerInfo[playerid][pLevel] >= 1)
  41. {
  42. new string[256];
  43. format(string,sizeof(string), ""CRVENA"[UP:RP AK] "SIVA"Igrac %s (ID:%d) je ubio igraca %s (ID:%d)", GetName(killerid), killerid, GetName(playerid), playerid);
  44. AdminGameMaster(-1, string);
  45. }
  46. ////////////////////////////////////////////////////////////
  47. if(gPlayerUsingLoopingAnim[playerid])
  48. {
  49. gPlayerUsingLoopingAnim[playerid] = 0;
  50. }
  51. ////////////////////////////////////////////////////////////
  52. return 1;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment