pawn Код:
#include <a_samp>
new PlayerKills[MAX_PLAYERS] = 0, Dominating[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] == 4 && Dominating[killerid] == 1)
{
format(string,128, "~r~%s OMG, Um jб foi.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 2)
{
format(string,128, "~r~%s O que й isto, Dois jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 1500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 3)
{
format(string,128, "~r~%s Espetacular, Tres jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 4)
{
format(string,128, "~r~%s UIII, Quatro jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 2500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 5)
{
format(string,128, "~r~%s Mas o que й isto, Cinco jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 6)
{
format(string,128, "~r~%s Estбs a brincar muito, Seis jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 3500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 7)
{
format(string,128, "~r~%s Joga com calma pah. Sete jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 8)
{
format(string,128, "~r~%s E nгo para. Oito jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 4500);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 9)
{
format(string,128, "~r~%s Fodas. Nove jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 5000);
GivePlayerMoney(playerid, -1000);
return 1;
}
if(PlayerKills[killerid] == 10)
{
format(string,128, "~r~%s OMG. Dez jб foram.", kName);
GameTextForAll(string, 6000,4);
GivePlayerMoney(killerid, 6000);
GivePlayerMoney(playerid, -1000);
return 1;
}
return 1;
}
esta ai tudo. e um FS