Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_BLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- new PlayerKills[MAX_PLAYERS] = 0, KILLER[MAX_PLAYERS] = 0;
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new kName[128], string[128];
- GetPlayerName(killerid, kName, sizeof(kName));
- PlayerKills[killerid] = PlayerKills[killerid] + 1;
- PlayerKills[playerid] = 0;
- if (PlayerKills[killerid] == 1 && KILLER[killerid] == 1)
- {
- format(string, sizeof(string), "TOP KILLLER!(+20000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 20000);
- return 1;
- }
- if (PlayerKills[killerid] == 2)
- {
- format(string, sizeof(string), "DOUBLE KILL!(+200)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 200);
- return 1;
- }
- if (PlayerKills[killerid] == 3)
- {
- format(string, sizeof(string), "TRIPLE KILL!(+600)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 600);
- return 1;
- }
- if (PlayerKills[killerid] == 4)
- {
- format(string, sizeof(string), "DOMINATING!(+1000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 1000);
- return 1;
- }
- if (PlayerKills[killerid] == 6)
- {
- format(string, sizeof(string), "RAMPAGE!(+2000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 2000);
- return 1;
- }
- if (PlayerKills[killerid] == 8)
- {
- format(string, sizeof(string), "KILLING SPREE!(+3000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 3000);
- return 1;
- }
- if (PlayerKills[killerid] == 10)
- {
- format(string, sizeof(string), "MONSTER KILL!(+4000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 4000);
- return 1;
- }
- if (PlayerKills[killerid] == 12)
- {
- format(string, sizeof(string), "UNSTOPPABLE!(+5000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 5000);
- return 1;
- }
- if (PlayerKills[killerid] == 14)
- {
- format(string, sizeof(string), "ULTRA KILL!(+6000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 6000);
- return 1;
- }
- if (PlayerKills[killerid] == 16)
- {
- format(string, sizeof(string), "GODLIKE!(+7000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 7000);
- return 1;
- }
- if (PlayerKills[killerid] == 18)
- {
- format(string, sizeof(string), "WICKED SICK!(+8000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 8000);
- return 1;
- }
- if (PlayerKills[killerid] == 20)
- {
- format(string, sizeof(string), "LUDICROUS KILL!(+9000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 9000);
- return 1;
- }
- if (PlayerKills[killerid] == 24)
- {
- format(string, sizeof(string), "HOLY SHIT!(+10000)(%s)", kName);
- SendClientMessageToAll(0x33CCFFAA,string);
- GivePlayerMoney(killerid, 10000);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement