Kill message
#1

^^^^^^^^
Reply
#2

This? SendDeathMessage
Reply
#3

^^^^^^^^
Reply
#4

GetPlayerName, format, SendClientMessage(ToAll).
Reply
#5

^^^^^^^^
Reply
#6

Here you go: https://sampforum.blast.hk/showthread.php?tid=413556&page=19
Reply
#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
#8

pawn Код:
format(string,sizeof(string),"%s Has Killed %s With A %s. ", KillerName, Name, WeapName);
Reply
#9

Quote:
Originally Posted by Anak
Посмотреть сообщение
pawn Код:
format(string,sizeof(string),"%s Has Killed %s With A %s. ", KillerName, Name, WeapName);
No, it should be the same way he did it. He did not say "%s has BEEN killed by someone" he said "%s killed someone"
Reply
#10

^^^^^^^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)