Custom Death Window - 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: Custom Death Window (
/showthread.php?tid=377224)
Custom Death Window -
[TC]XxJuggaloxX - 13.09.2012
How would I go about making a Custom death Message.
Such as When a person dies from Heliblade/Falling, It would say "Username is no more"
Or when a person is shot by a specific gun, Like the AK47 or M4, It would say Username [AK47] KillersUsername
Clearly it would have to do with the SendDeathMessage function....
Re: Custom Death Window -
Eric - 13.09.2012
Well, if you just wanted a message submitted in the chatbox, you could just input a SendClientMessageToAll function in OnPlayerDeath.
Re: Custom Death Window -
[TC]XxJuggaloxX - 13.09.2012
I assume you mean something like this?
pawn Код:
new weaponname[32], string[64];
GetWeaponName(reason, weaponname, sizeof(weaponname));
format(string,sizeof(string),"%s [%s] %s.",GetPlayerNameEx(killerid),weaponname,GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_WHITE,string);
I was looking through old posts when I found something similar, I tried to fix it up.
Would that be a possibility as far as it actually working? If so, Can this be put into a Textdraw?