public OnPlayerDeath(playerid, killerid, reason)
{
//Player scores++
SetPlayerScore(killerid, GetPlayerScore(killerid) +1);
//Team scores ++
if(PlayerTeam[killerid] == TEAM_TERRORISTA) scoreterrorista++;
if(PlayerTeam[killerid] == TEAM_KATONA) scorekatona++;
//Team score switch out
switch(scoreterrorista)
{
case 5: SendClientMessage(TEAM_KATONA, COLOR_LIGHTBLUE, \"[TERRORISTA] Terrositák megöltek 5 tagot/embert!\");
case 10: SendClientMessage(TEAM_KATONA, COLOR_LIGHTBLUE, \"[TERRORISTA] Terroristák megöltek 10 tagot/embert!\");
}
switch(scorekatona)
{
case 5: SendClientMessage(TEAM_TERRORISTA, COLOR_RED, \"[KATONA] Katonák Megöltek 5 tagot/embert!\");
case 10: SendClientMessage(TEAM_TERRORISTA, COLOR_RED, \"[KATONA] Katonák Megöltek 10 tagot/embert!\");
}
//Killing spree
new kName[128], string[128];
GetPlayerName(killerid, kName, sizeof(kName));
PlayerKills[killerid] = PlayerKills[killerid]++;
PlayerKills[playerid] = 0;
if(PlayerKills[killerid] == 4 && Dominating[killerid] == 1)
{
format(string, sizeof(string), \"~r~%s Elsõ Ölése\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 25);
GivePlayerMoney(playerid, -30);
return 1;
}
if(PlayerKills[killerid] == 2)
{
format(string, sizeof(string), \"~r~%s Második Ölése\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 35);
GivePlayerMoney(playerid, -40);
return 1;
}
if(PlayerKills[killerid] == 3)
{
format(string, sizeof(string), \"~r~%s Sorozat Gyilkos\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 40);
GivePlayerMoney(playerid, -45);
return 1;
}
if(PlayerKills[killerid] == 5)
{
format(string, sizeof(string), \"~r~%s A Pusztító\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 45);
GivePlayerMoney(playerid, -50);
return 1;
}
if(PlayerKills[killerid] == 7)
{
format(string, sizeof(string), \"~r~%s Halálosztó\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 50);
GivePlayerMoney(playerid, -55);
return 1;
}
if(PlayerKills[killerid] == 9)
{
format(string, sizeof(string), \"~r~%s Gonosz Állat\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 75);
GivePlayerMoney(playerid, -80);
return 1;
}
if(PlayerKills[killerid] == 11)
{
format(string, sizeof(string), \"~r~%s Gyilkos Szörny\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 80);
GivePlayerMoney(playerid, -85);
return 1;
}
if(PlayerKills[killerid] == 14)
{
format(string, sizeof(string), \"~r~%s Gyilkos Tombolása\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 100);
GivePlayerMoney(playerid, -110);
return 1;
}
if(PlayerKills[killerid] == 15)
{
format(string, sizeof(string), \"~r~%s 15 Gyilkossága\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 120);
GivePlayerMoney(playerid, -125);
return 1;
}
if(PlayerKills[killerid] == 20)
{
format(string, sizeof(string), \"~r~%s LEgyilkolt 20 ellenfélt\", kName);
GameTextForAll(string, 6000,5);
GivePlayerMoney(killerid, 200);
GivePlayerMoney(playerid, -220);
return 1;
}
return 1;
}