SA-MP Forums Archive
Kill message - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Kill message (/showthread.php?tid=422010)



Kill message - Ananisiki - 11.03.2013

^^^^^^^^


Re: Kill message - Jstylezzz - 11.03.2013

This? SendDeathMessage


Re: Kill message - Ananisiki - 11.03.2013

^^^^^^^^


Re: Kill message - MP2 - 11.03.2013

GetPlayerName, format, SendClientMessage(ToAll).


Re: Kill message - Ananisiki - 11.03.2013

^^^^^^^^


Re: Kill message - LarzI - 11.03.2013

Here you go: https://sampforum.blast.hk/showthread.php?tid=413556&page=19


Re: Kill message - Jewell - 12.03.2013

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;
}



Re: Kill message - Anak - 12.03.2013

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



Re: Kill message - Denying - 12.03.2013

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"


Re: Kill message - Ananisiki - 12.03.2013

^^^^^^^^