Advertisement
Guest User

Kill Combos

a guest
Jun 2nd, 2011
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.32 KB | None | 0 0
  1. #include <a_samp>
  2. #define COLOR_GREEN 0x33AA33AA
  3. #define COLOR_RED 0xAA3333AA
  4. #define COLOR_YELLOW 0xFFFF00AA
  5. #define COLOR_BLUE 0x33CCFFAA
  6. #define COLOR_ORANGE 0xFF9900AA
  7. new PlayerKills[MAX_PLAYERS] = 0, KILLER[MAX_PLAYERS] = 0;
  8. public OnPlayerDeath(playerid, killerid, reason)
  9. {
  10.     new kName[128], string[128];
  11.     GetPlayerName(killerid, kName, sizeof(kName));
  12.     PlayerKills[killerid] = PlayerKills[killerid] + 1;
  13.     PlayerKills[playerid] = 0;
  14.     if (PlayerKills[killerid] == 1 && KILLER[killerid] == 1)
  15.     {
  16.         format(string, sizeof(string), "TOP KILLLER!(+20000)(%s)", kName);
  17.         SendClientMessageToAll(0x33CCFFAA,string);
  18.         GivePlayerMoney(killerid, 20000);
  19.         return 1;
  20.     }
  21.     if (PlayerKills[killerid] == 2)
  22.     {
  23.         format(string, sizeof(string), "DOUBLE KILL!(+200)(%s)", kName);
  24.         SendClientMessageToAll(0x33CCFFAA,string);
  25.         GivePlayerMoney(killerid, 200);
  26.         return 1;
  27.     }
  28.     if (PlayerKills[killerid] == 3)
  29.     {
  30.         format(string, sizeof(string), "TRIPLE KILL!(+600)(%s)", kName);
  31.         SendClientMessageToAll(0x33CCFFAA,string);
  32.         GivePlayerMoney(killerid, 600);
  33.         return 1;
  34.     }
  35.     if (PlayerKills[killerid] == 4)
  36.     {
  37.         format(string, sizeof(string), "DOMINATING!(+1000)(%s)", kName);
  38.         SendClientMessageToAll(0x33CCFFAA,string);
  39.         GivePlayerMoney(killerid, 1000);
  40.         return 1;
  41.     }
  42.     if (PlayerKills[killerid] == 6)
  43.     {
  44.         format(string, sizeof(string), "RAMPAGE!(+2000)(%s)", kName);
  45.         SendClientMessageToAll(0x33CCFFAA,string);
  46.         GivePlayerMoney(killerid, 2000);
  47.         return 1;
  48.     }
  49.     if (PlayerKills[killerid] == 8)
  50.     {
  51.         format(string, sizeof(string), "KILLING SPREE!(+3000)(%s)", kName);
  52.         SendClientMessageToAll(0x33CCFFAA,string);
  53.         GivePlayerMoney(killerid, 3000);
  54.         return 1;
  55.     }
  56.     if (PlayerKills[killerid] == 10)
  57.     {
  58.         format(string, sizeof(string), "MONSTER KILL!(+4000)(%s)", kName);
  59.         SendClientMessageToAll(0x33CCFFAA,string);
  60.         GivePlayerMoney(killerid, 4000);
  61.         return 1;
  62.     }
  63.     if (PlayerKills[killerid] == 12)
  64.     {
  65.         format(string, sizeof(string), "UNSTOPPABLE!(+5000)(%s)", kName);
  66.         SendClientMessageToAll(0x33CCFFAA,string);
  67.         GivePlayerMoney(killerid, 5000);
  68.         return 1;
  69.     }
  70.     if (PlayerKills[killerid] == 14)
  71.     {
  72.         format(string, sizeof(string), "ULTRA KILL!(+6000)(%s)", kName);
  73.         SendClientMessageToAll(0x33CCFFAA,string);
  74.         GivePlayerMoney(killerid, 6000);
  75.         return 1;
  76.     }
  77.     if (PlayerKills[killerid] == 16)
  78.     {
  79.         format(string, sizeof(string), "GODLIKE!(+7000)(%s)", kName);
  80.         SendClientMessageToAll(0x33CCFFAA,string);
  81.         GivePlayerMoney(killerid, 7000);
  82.         return 1;
  83.     }
  84.     if (PlayerKills[killerid] == 18)
  85.     {
  86.         format(string, sizeof(string), "WICKED SICK!(+8000)(%s)", kName);
  87.         SendClientMessageToAll(0x33CCFFAA,string);
  88.         GivePlayerMoney(killerid, 8000);
  89.         return 1;
  90.     }
  91.     if (PlayerKills[killerid] == 20)
  92.     {
  93.         format(string, sizeof(string), "LUDICROUS KILL!(+9000)(%s)", kName);
  94.         SendClientMessageToAll(0x33CCFFAA,string);
  95.         GivePlayerMoney(killerid, 9000);
  96.         return 1;
  97.     }
  98.     if (PlayerKills[killerid] == 24)
  99.     {
  100.         format(string, sizeof(string), "HOLY SHIT!(+10000)(%s)", kName);
  101.         SendClientMessageToAll(0x33CCFFAA,string);
  102.         GivePlayerMoney(killerid, 10000);
  103.         return 1;
  104.     }
  105.     return 1;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement