Guest User

SAMP KILL SPREE SYSTEM

a guest
Mar 6th, 2013
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.10 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     print("\n--------------------------------------");
  13.     print(" Blank Filterscript by your name here");
  14.     print("--------------------------------------\n");
  15.     return 1;
  16. }
  17.  
  18. public OnPlayerDeath(playerid, killerid, reason)
  19. {
  20.         SendDeathMessage(killerid, playerid, reason);
  21.         KillingSpree[killerid] ++;
  22.         KillingSpree[playerid] = 0;
  23.         SetPlayerScore(killerid,GetPlayerScore(killerid)+2);
  24.         new str[256], KillerName[MAX_PLAYER_NAME];
  25.         GetPlayerName(killerid, KillerName, sizeof(KillerName));
  26.  
  27.         if(KillingSpree[killerid] == 3)
  28.         {
  29.             format(str, sizeof(str), "~r~%s ~n~ 3 Killing Spree~n~ ", KillerName);
  30.             GameTextForAll(str, 5000, 5);
  31.             GivePlayerMoney(playerid, 6545);
  32.         }
  33.         if(KillingSpree[killerid] == 4)
  34.         {
  35.             format(str, sizeof(str), "~r~%s ~n~ 4 Killing Spree~n~, KillerName);
  36.            GameTextForAll(str, 5000, 5);
  37.            GivePlayerMoney(playerid, 6345);
  38.        }
  39.        if(KillingSpree[killerid] == 5)
  40.        {
  41.            format(str, sizeof(str), "~r~%s ~n~ 5 Killing Spree~n~", KillerName);
  42.            GameTextForAll(str, 5000, 5);
  43.            GivePlayerMoney(playerid, 6345);
  44.            GivePlayerWeapon(playerid, 34, 50);
  45.            SendClientMessage(playerid, COLOR_YELLOWGREEN, "You Got A Sniper Rifle Kill Spree Bonus!
  46.         }
  47.        
  48.         if(KillingSpree[killerid] == 6)
  49.         {
  50.             format(str, sizeof(str), "~r~%s ~n~ 6 Killing Spree~n~, KillerName);
  51.            GameTextForAll(str, 5000, 5);
  52.            GivePlayerMoney(playerid, 6345);
  53.         }
  54.        if(KillingSpree[killerid] == 7)
  55.        {
  56.            format(str, sizeof(str), "~r~%s ~n~ 7 Killing Spree~n~", KillerName);
  57.            GameTextForAll(str, 5000, 5);
  58.            GivePlayerMoney(playerid, 6345);
  59.         }
  60.        if(KillingSpree[killerid] == 8)
  61.        {
  62.            format(str, sizeof(str), "~r~%s ~n~ 8 Killing Spree~n~, KillerName);
  63.             GameTextForAll(str, 5000, 5);
  64.             GivePlayerMoney(playerid, 6345);
  65.         }
  66.         if(KillingSpree[killerid] == 9)
  67.         {
  68.             format(str, sizeof(str), "~r~%s ~n~ 9 Killing Spree~n~", KillerName);
  69.             GameTextForAll(str, 5000, 5);
  70.             GivePlayerMoney(playerid, 6345);
  71.             GivePlayerWeapon(playerid, 31, 50);
  72.             SendClientMessage(playerid, COLOR_YELLOWGREEN, "You Got A M4 For Kill Spree Bonus!
  73.         }
  74.        if(KillingSpree[killerid] == 10)
  75.        {
  76.            format(str, sizeof(str), "~r~%s ~n~ 10 Killing Spree~n~", KillerName);
  77.            GameTextForAll(str, 5000, 5);
  78.            GivePlayerMoney(playerid, 6345);
  79.         }
  80.        if(KillingSpree[killerid] == 11)
  81.        {
  82.            format(str, sizeof(str), "~r~%s ~n~ 11 Killing Spree~n~", KillerName);
  83.            GameTextForAll(str, 5000, 5);
  84.            GivePlayerMoney(playerid, 6345);
  85.         }
  86.        if(KillingSpree[killerid] == 12)
  87.        {
  88.            format(str, sizeof(str), "~r~%s ~n~ 12 Killing Spree~n~", KillerName);
  89.            GameTextForAll(str, 5000, 5);
  90.            GivePlayerMoney(playerid, 6345);
  91.         }
  92.        if(KillingSpree[killerid] == 13)
  93.        {
  94.            format(str, sizeof(str), "~r~%s ~n~ 13 Killing Spree~n~", KillerName);
  95.            GameTextForAll(str, 5000, 5);
  96.            GivePlayerMoney(playerid, 6345);
  97.         }
  98.        if(KillingSpree[killerid] == 14)
  99.        {
  100.            format(str, sizeof(str), "~r~%s ~n~ 14 Killing Spree~n~", KillerName);
  101.            GameTextForAll(str, 5000, 5);
  102.            GivePlayerMoney(playerid, 6345);
  103.            GivePlayerWeapon(playerid, 27, 150);
  104.            SendClientMessage(playerid, COLOR_YELLOWGREEN, "You Got A Combact Shotgun Kill Spree Bonus!
  105.         }
  106.  
  107. CMD:spree( playerid, params[ ] )
  108. {
  109.      SendClientMessage(playerid, COLOR_YELLOWGREEN, "%{87CEFA}%s Kill Spree %s, killerid ,KillingSpree")
  110.     return 1;
  111. }
  112.  
  113. public OnFilterScriptExit()
  114. {
  115.     return 1;
  116. }
  117.  
  118. #else
  119. #endif
Advertisement
Add Comment
Please, Sign In to add comment