26.07.2012, 19:26
oke
pawn Код:
stock KillingSpree(killerid)
{
new p_Name[24],str[128],Float:kHealth;
new kHP=GetPlayerHealth(killerid,kHealth);
GetPlayerName(killerid,p_Name,24);
KillingSpreeCount[killerid]++;
switch(KillingSpreeCount[killerid])
{
case 2:
{
if(kHP >=91 && kHP<=100)
{
GivePlayerMoney(killerid,200);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 200$");
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is on a double kill!(2 Kills)",p_Name);
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is on a double kill!(2 Kills)",p_Name);
SetPlayerHealth(killerid,kHP+10);
GivePlayerMoney(killerid,200);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +10 HP ");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +200$ Bonus");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 3:
{
if(kHP >=91 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is on a triple kill!(3 Kills)",p_Name);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 400$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
GivePlayerMoney(killerid,400);
SetPlayerHealth(killerid,kHP+10);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is on a triple kill!(3 Kills)",p_Name);
SetPlayerHealth(killerid,kHP+10);
GivePlayerMoney(killerid,400);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +10 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 400$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 4:
{
if(kHP >=91 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Dominating!(4 Kills)",p_Name);
GivePlayerMoney(killerid,600);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 600$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Dominating!(4 Kills)",p_Name);
SetPlayerHealth(killerid,kHP+10);
GivePlayerMoney(killerid,600);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +10 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 600$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 5:
{
if(kHP >=91 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnStoppable!(5 Kills)",p_Name);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1000$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
GivePlayerMoney(killerid,1000);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnStoppable!(5 Kills)",p_Name);
SetPlayerHealth(killerid,kHP+15);
GivePlayerMoney(killerid,1000);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +15 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1000$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 6:
{
if(kHP >=86 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnBeatable!(6 Kills)",p_Name);
GivePlayerMoney(killerid,1200);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1200$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnBeatable!(6 Kills)",p_Name);
GivePlayerMoney(killerid,1200);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +15 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1200$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 7:
{
if(kHP >=81 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnBeatable!(7 Kills)",p_Name);
GivePlayerMoney(killerid,1400);
}
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is UnBeatable!(7 Kills)",p_Name);
GivePlayerMoney(killerid,1400);
SetPlayerHealth(killerid,kHP+20);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +20 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1400$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
case 8:
{
if(kHP >=81 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Owning!(8 Kills)",p_Name);
GivePlayerMoney(killerid,1400);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1400$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Owning!(8 Kills)",p_Name);
GivePlayerMoney(killerid,1400);
SetPlayerHealth(killerid,kHP+20);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +20 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1400$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 9:
{
if(kHP >=76 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Invincible !(9 Kills)",p_Name);
GivePlayerMoney(killerid,1800);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1800$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is Invincible !(9 Kills)",p_Name);
GivePlayerMoney(killerid,1800);
SetPlayerHealth(killerid,kHP+25);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +25 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 1800$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
case 10:
{
if(kHP >=76 && kHP<=100)
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is a God of war !(10 Kills)",p_Name);
GivePlayerMoney(killerid,2000);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 2000$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
else
{
format(str,sizeof(str),"Killing Spree : "#COL_RED"%s is a God of war !(10 Kills)",p_Name);
GivePlayerMoney(killerid,2000);
SetPlayerHealth(killerid,kHP+25);
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : +25 HP Bonus!");
SendClientMessage(killerid,COLOR_YELLOW,"Killing Spree : + 2000$ Bonus!");
SendClientMessageToAll(COLOR_GREEN,str);
}
}
}
return 1;
}