Guest User

Untitled

a guest
Apr 27th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. public OnPlayerDeath(playerid, killerid, reason)
  2. {
  3. Stvariizdeadha(playerid);
  4. PlayerInfo[playerid][pDeaths] += 1;
  5. PlayerInfo[killerid][pKills] += 1;
  6. DisablePlayerCheckpoint(playerid);
  7. DisablePlayerRaceCheckpoint(playerid);
  8.  
  9. if(gPlayerUsingLoopingAnim[playerid]){gPlayerUsingLoopingAnim[playerid] = 0;}
  10.  
  11. if(IsDead[playerid] == 1 && InCall[playerid] == 1 && Tallking[playerid] == 1){IsDead[playerid] = 1;}//MOB DEATH
  12. if(HitInfo[killerid][hitHit] == 1 && PlayerInfo[killerid][pMember] == 6)
  13. {
  14. if(hitmanid[killerid] == playerid)
  15. {
  16. new string[100], pdclan;
  17. new level = PlayerInfo[playerid][pScore];
  18. if(PlayerInfo[playerid][pMember] == 1)
  19. {
  20. pdclan = 300;
  21. }
  22. else
  23. {
  24. pdclan = 0;
  25. }
  26. HitInfo[killerid][hitCijena] = level*50+pdclan;
  27. format(string, sizeof(string), "[INFO]: Uspjesno ste rjesili metu pod imenom %s - zaradili ste %d$.", GetName(playerid), HitInfo[killerid][hitCijena]);
  28. SCM(killerid, COLOR_GOLD, string);
  29. Conti_GivePlayerMoney(killerid, HitInfo[killerid][hitCijena]);
  30. HitInfo[killerid][hitHit] = 0;
  31. PlayerInfo[killerid][pHitTime] = 500;
  32. hitmanid[killerid] = -1;
  33. HitInfo[killerid][hitCijena] = 0;
  34. }
  35. }
  36. if(IsBeingSpeced[playerid] == 1)
  37. {
  38. for(new i = 0; i != MAX_PLAYERS; ++i)
  39. {
  40. if(IsPlayerConnected(i))
  41. {
  42. if(spectatorid[i] == playerid)
  43. {
  44. TogglePlayerSpectating(i, false);
  45. PlayerTextDrawHide(playerid, ReconStateDate[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconIme[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconLevel[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconNovac[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconBanka[spectatorid[playerid]]);
  46. PlayerTextDrawHide(playerid, ReconTazzTie[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconAreaZatvor[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconZdravljePancir[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconZdravljeVozila[spectatorid[playerid]]); PlayerTextDrawHide(playerid, ReconPrekid[spectatorid[playerid]]);
  47. }
  48. }
  49. }
  50. }
  51. if(SecretInfo[killerid][secretHit] == 1 && PlayerInfo[killerid][pMember] == 7)
  52. {
  53. if(secretid[killerid] == playerid)
  54. {
  55. new string[100], pdclan;
  56. new level = PlayerInfo[playerid][pScore];
  57. if(PlayerInfo[playerid][pMember] == 1)
  58. {
  59. pdclan = 300;
  60. }
  61. else
  62. {
  63. pdclan = 0;
  64. }
  65. SecretInfo[killerid][secretCijena] = level*50+pdclan;
  66. format(string, sizeof(string), "[INFO]: Uspjesno ste rjesili metu pod imenom %s - zaradili ste %d$.", GetName(playerid), SecretInfo[killerid][secretCijena]);
  67. SCM(killerid, COLOR_GOLD, string);
  68. Conti_GivePlayerMoney(killerid, SecretInfo[killerid][secretCijena]);
  69. SecretInfo[killerid][secretHit] = 0;
  70. PlayerInfo[killerid][pSecretTime] = 500;
  71. secretid[killerid] = -1;
  72. SecretInfo[killerid][secretCijena] = 0;
  73. }
  74. }
  75. //=============================================================================================================================================================================
  76. //WAR DEATH
  77. if(IsPlayerConnected(killerid) && WarAktivan == true && IgracUWaru[playerid] == 1 && IgracUWaru[killerid] == 1)
  78. {
  79. if(PlayerInfo[killerid][pMember] == WarTim1 && PlayerInfo[playerid][pMember] == WarTim2)
  80. {
  81. Tim1Skor++;
  82. }
  83. else if(PlayerInfo[killerid][pMember] == WarTim2 && PlayerInfo[playerid][pMember] == WarTim1)
  84. {
  85. Tim2Skor++;
  86. }
  87. }
  88. return 1;
  89. }
Advertisement
Add Comment
Please, Sign In to add comment