Kill message
#7

I couldn't test this. but this should works
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
    {
        new string[128],WeapName[32],Name[MAX_PLAYER_NAME],KillerName[MAX_PLAYER_NAME];
        GetWeaponName(reason, WeapName, sizeof(WeapName));
        GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
        GetPlayerName(killerid, KillerName, MAX_PLAYER_NAME);
        format(string,sizeof(string),"%s Has Killed %s With A %s. ",Name, KillerName,WeapName);
        SendClientMessageToAll(-1, string);
    }
    return 1;
}
Reply


Messages In This Thread
Kill message - by Ananisiki - 11.03.2013, 21:13
Re: Kill message - by Jstylezzz - 11.03.2013, 21:14
Re: Kill message - by Ananisiki - 11.03.2013, 22:10
Re: Kill message - by MP2 - 11.03.2013, 22:19
Re: Kill message - by Ananisiki - 11.03.2013, 22:28
Re: Kill message - by LarzI - 11.03.2013, 22:46
Re: Kill message - by Jewell - 12.03.2013, 03:28
Re: Kill message - by Anak - 12.03.2013, 03:34
Re: Kill message - by Denying - 12.03.2013, 04:56
Re: Kill message - by Ananisiki - 12.03.2013, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)