[Pedido] ChatKill
#6

Quote:
Originally Posted by Lуs
Посмотреть сообщение
GetPlayerWeapon nгo retorna o nome da arma. O certo seria GetWeaponName.

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendDeathMessage(killerid, playerid, reason);
   
    new
        playerDied[MAX_PLAYER_NAME],
        playerKiller[MAX_PLAYER_NAME],
        deathMessage[115],
        weapon[32];

    GetPlayerName(playerid, playerDied, sizeof playerDied);
    GetPlayerName(killerid, playerKiller, sizeof playerKiller);
    GetPlayerWeaponName(reason, weapon, 32);

    format(deathMessage, sizeof(deathMessage), "[ INFO ] O jogador %s te matou com com um(a) %s", playerKiller, weapon);
    SendClientMessage(playerid, -1, deathMessage);

    format(deathMessage, sizeof(deathMessage), "[ INFO ] Voce matou o jogador %s com um(a) %s", playerDied, weapon);
    SendClientMessage(killerid, -1, deathMessage);

    return 1;
}
Eu troco essas 2 funcoes rs, vlw ae Los
Reply


Messages In This Thread
ChatKill - by gmstrikker - 11.09.2013, 02:18
Re: ChatKill - by danielcantiliano - 11.09.2013, 02:35
Re: ChatKill - by PT - 11.09.2013, 02:40
Re: ChatKill - by gmstrikker - 11.09.2013, 02:59
Re: ChatKill - by Lуs - 11.09.2013, 03:02
Re: ChatKill - by PT - 11.09.2013, 03:09
Re: ChatKill - by gmstrikker - 14.09.2013, 16:18
Re: ChatKill - by Coe1 - 14.09.2013, 16:21

Forum Jump:


Users browsing this thread: 3 Guest(s)