Advertisement
Guest User

Venom's Most Wanted !

a guest
Jun 22nd, 2014
1,040
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //============================================================================//
  2. /*------------------------------------------------------------------------------
  3. :: MostWanted System ::
  4. -- VenomMancer A.K.A Angga_Lombongkaehe --
  5.  
  6. Credits:
  7. + a_samp : SA-MP Team
  8. + Streamer : Icognito
  9. + VenomMancer : Make this FS
  10.  
  11. ** Dont Remove the credits..
  12. ------------------------------------------------------------------------------*/
  13. //=============================================================================//
  14.  
  15. /*----------------------------------------------------------------------------*/
  16. // Includes
  17. /*----------------------------------------------------------------------------*/
  18. #include <a_samp>
  19. #include <streamer>
  20.  
  21. /*----------------------------------------------------------------------------*/
  22. // Variabel
  23. /*----------------------------------------------------------------------------*/
  24. new MostKill[MAX_PLAYERS];
  25. new Text3D:MWTD[MAX_PLAYERS];
  26. /*----------------------------------------------------------------------------*/
  27. // Callbacks
  28. /*----------------------------------------------------------------------------*/
  29. public OnFilterScriptInit()
  30. {
  31. print("\n---------------------------------------------");
  32. print(" MostWanted System by : VenomMancer A.K.A Angga.L Loaded");
  33. print("----------------------------------------------\n");
  34. return 1;
  35. }
  36.  
  37. public OnPlayerSpawn(playerid)
  38. {
  39. // Please dont remove this .. :)
  40. SendClientMessage(playerid,0xCC66FFFF,"** On this server used MOST-WANTED system by : VenomMancer !");
  41. return 1;
  42. }
  43.  
  44. public OnFilterScriptExit()
  45. {
  46. print("\n---------------------------------------------");
  47. print(" MostWanted System by : VenomMancer A.K.A Angga.L Unloaded");
  48. print("----------------------------------------------\n");
  49. return 1;
  50. }
  51.  
  52. public OnPlayerDeath(playerid, killerid, reason)
  53. {
  54. MostKill[playerid] = 0; // make playerid MostKill count = 0
  55. MostKill[killerid] ++; // make killerid MostKill count ++
  56. MostStar(killerid); // MostStar Callback
  57. MostStar(playerid); // MostStar Callback
  58. return 1;
  59. }
  60.  
  61. public OnPlayerConnect(playerid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDisconnect(playerid, reason)
  67. {
  68. DestroyDynamic3DTextLabel(MWTD[playerid]);
  69. MostKill[playerid] == 0;
  70. return 1;
  71. }
  72.  
  73. forward MostStar(playerid);
  74. public MostStar(playerid)
  75. {
  76.  
  77. if(MostKill[playerid] == 0) // if player's MostKill = 0
  78. {
  79. SetPlayerWantedLevel(playerid,0);
  80. DestroyDynamic3DTextLabel(MWTD[playerid]);
  81. }
  82. else if(MostKill[playerid] == 1) // if player's MostKill = 1
  83. {
  84. SetPlayerWantedLevel(playerid,1); // Set the player's Wanted Level = 1
  85. }
  86. else if(MostKill[playerid] == 2) // if player's MostKill = 2
  87. {
  88. SetPlayerWantedLevel(playerid,2); // Set the player's Wanted Level = 2
  89. }
  90. else if(MostKill[playerid] == 3) // if player's MostKill = 3
  91. {
  92. SetPlayerWantedLevel(playerid,3); // Set the player's Wanted Level = 3
  93. }
  94. else if(MostKill[playerid] == 4) // if player's MostKill = 4
  95. {
  96. SetPlayerWantedLevel(playerid,4); // Set the player's Wanted Level = 4
  97. }
  98. else if(MostKill[playerid] == 5) // if player's MostKill = 5
  99. {
  100. SetPlayerWantedLevel(playerid,5); // Set the player's Wanted Level = 5
  101. }
  102. else if(MostKill[playerid] == 6) // if player's MostKill = 6
  103. {
  104. new str[256];
  105. format(str,256,"{FF0000}[SERVER] : {FFFFFF}'%s[%i]' now is MOST-WANTED! :: [PRO Death-Match] ::",GetNameEx(playerid),playerid);
  106. SendClientMessageToAll(-1,str);
  107.  
  108. SetPlayerArmour(playerid,100);
  109. SetPlayerHealth(playerid,100);
  110.  
  111. SetPlayerWantedLevel(playerid,6); // Here the MOST-WANTED
  112.  
  113. MWTD[playerid] = CreateDynamic3DTextLabel("{00FF00}Most-Wanted", -1, 0.0, 0.0, -0.9, 20, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 25.0);
  114. }
  115. else if(MostKill[playerid] > 6)
  116. {
  117.  
  118. }
  119. return 1;
  120. }
  121.  
  122. stock GetNameEx(playerid)
  123. {
  124. new xName[MAX_PLAYER_NAME];
  125. GetPlayerName(playerid,xName,MAX_PLAYER_NAME);
  126. return xName;
  127. }
  128. // Please dont remove The credits!!!..
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement