27.08.2011, 22:41
I Didn't made this , i dont know who is
pawn Code:
#include <a_samp>
new Kills[MAX_PLAYERS];
new st[128];
new name[24];
new Killername[24];
#define COLOR_YELLOW 0xFFFF00AA
public OnPlayerDeath(playerid,killerid,reason)
{
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(killerid,Killername,sizeof(Killername));
if(Kills[playerid] > 2)
{
GivePlayerMoney(killerid,3000*GetPlayerWantedLevel(playerid));
format(st,sizeof(st),"%s was awarded %d for killing %s wanted level %d",Killername,3000*GetPlayerWantedLevel(playerid),name,GetPlayerWantedLevel(playerid));
SendClientMessageToAll(COLOR_YELLOW,st);
}
Kills[playerid] = 0;
Kills[killerid]++;
SetPlayerWantedLevel(playerid,0);
if(Kills[killerid] == 3)
{
format(st,sizeof(st),"~S~%s is ~b~dominating!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,1);
}
if(Kills[killerid] == 5)
{
format(st,sizeof(st),"~S~%s is on a~r~killing spree!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,2);
}
if(Kills[killerid] == 8)
{
format(st,sizeof(st),"~S~%s ~b~Monster Kill!!!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,3);
}
if(Kills[killerid] == 11)
{
format(st,sizeof(st),"~S~%s is ~r~Godlike!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,4);
}
if(Kills[killerid] == 15)
{
format(st,sizeof(st),"~S~%s is ~R~Wiked Sick!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,5);
}
if(Kills[killerid] == 18)
{
format(st,sizeof(st),"~S~%s ~R~HOLY ~B~SHIT!",Killername);
GameTextForAll(st,5000,4);
SetPlayerWantedLevel(killerid,6);
}
return 1;
}