new granastatus[MAX_PLAYERS];
new nomedofd[MAX_PLAYER_NAME];GetPlayerName(killerid, nomedofd, sizeof(nomedofd));
if(granastatus[playerid] > 0 && (GetPlayerTeam(killerid) == 0 || GetPlayerTeam(playerid) != GetPlayerTeam(killerid))) {
format(string, sizeof(string), "[RECOMPENSAS]: %s recebeu a recompensa de $%d mil euros por matar %s.", nomedofd, granastatus[playerid], PlayerName(playerid));
SendClientMessageToAll(0x33AA33AA,string);
GivePlayerMoney(killerid, granastatus[playerid]);
granastatus[killerid]++;
granastatus[playerid] = 0;
}
if(GetPlayerTeam(killerid) != GetPlayerTeam(playerid))
{
granastatus[killerid] = Mortes[killerid] * 1000;
granastatus[playerid] = 0;
GivePlayerMoney(killerid, granastatus[playerid]);
Mortes[killerid]++;
PlayerInfo[playerid][pMorreu]++;
PlayerInfo[killerid][pMatou]++;
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
GivePlayerMoney(killerid, 2500);
GameTextForPlayer(killerid, "~y~Voce matou um ~w~emo!", 2500, 5);
}
if(granastatus[playerid] > 0 && (GetPlayerTeam(killerid) == 0 || GetPlayerTeam(playerid) != GetPlayerTeam(killerid)))
{
new nomedofd[MAX_PLAYER_NAME];
GetPlayerName(killerid, nomedofd, sizeof(nomedofd));
format(string, sizeof(string), "[RECOMPENSAS]: %s recebeu a recompensa de $%d mil euros por matar %s.", nomedofd, granastatus[playerid], PlayerName(playerid));
SendClientMessageToAll(0x33AA33AA,string);
granastatus[killerid] += granastatus[playerid];
GivePlayerMoney(killerid, granastatus[playerid]);
granastatus[playerid] = 0;
ResetPlayerMoney(playerid);
}
granastatus[playerid] = 0;
if(GetPlayerTeam(killerid) != GetPlayerTeam(playerid))
{
granastatus[killerid] = Mortes[killerid] * 1000; //ESSA
granastatus[playerid] = 0; //ESSA
GivePlayerMoney(killerid, granastatus[playerid]); //ESSA
Mortes[killerid]++;
PlayerInfo[playerid][pMorreu]++;
PlayerInfo[killerid][pMatou]++;
SetPlayerScore(killerid,GetPlayerScore(killerid) +1);
GivePlayerMoney(killerid, 2500);
GameTextForPlayer(killerid, "~y~Voce matou um ~w~emo!", 2500, 5);
}
certo e nesse caso abaixo e preciso criar essa if e por as seguintes linha:
pawn Код:
@EDIT VItor pode ficar diboa sou o guaruja fmz se derem resposta coloco la no nosso gm.. |