} if(PlayerInfo[playerid][pHeadValue] > 0) { if(IsPlayerConnected(killerid)) { if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8 || PlayerInfo[killerid][pMembro] == 8) { if(GoChase[killerid] == playerid) { ConsumingMoney[killerid] = 1; new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]); format(string,128,"<< Assassino %s cumpriu o contrato em %s e ganhou R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); PlayerInfo[playerid][pHeadValue] = 0; GotHit[playerid] = 0; PlayerInfo[hitid][pMask] = 0; GetChased[playerid] = 999; GoChase[killerid] = 999; } } }
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8 || PlayerInfo[killerid][pMembro] == 8)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoneyEx(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Assassino %s cumpriu o contrato em %s e ganhou R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
PlayerInfo[hitid][pMask] = 0;
GetChased[playerid] = 999;
GivePlayerMoney(killerid, 999); // <-
}
}
}
}
if(PlayerInfo[playerid][pHeadValue] > 0)
{
if(IsPlayerConnected(killerid))
{
if(gTeam[killerid] == 10 || PlayerInfo[killerid][pLider] == 8 || PlayerInfo[killerid][pMembro] == 8)
{
if(GoChase[killerid] == playerid)
{
ConsumingMoney[killerid] = 1;
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]);
format(string,128,"<< Assassino %s cumpriu o contrato em %s e ganhou R$%d >>",killer,name,PlayerInfo[playerid][pHeadValue]);
SendFamilyMessage(8, COLOR_YELLOW, string);
PlayerInfo[playerid][pHeadValue] = 0;
GotHit[playerid] = 0;
PlayerInfo[hitid][pMask] = 0;
GetChased[playerid] = 999;
GoChase[killerid] = 999;
}
}
}
nao sei se to serto mais se ele usar GivePlayerMoney ele definira apenas 1 valor e se alguem por ex : 10000 na cabeзa do cara e ele reseber apenas 999? tensoo. |
new contrato1000[MAX_PLAYERS];
//na funзгo
if(contrato1000[playerid] == 1)
{
GivePlayerMoney(killerid, 1000);
return 1;
}
//E assim por diante