Guest User

Untitled

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