Help with showing name on death - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with showing name on death (
/showthread.php?tid=167106)
Help with showing name on death -
lSCARl - 11.08.2010
i want to make it so when a player dies it shows to all players "player X" Is now a Hunter! playerx is the player that died is this possible if so how can i do this?
Re: Help with showing name on death -
Nathan_Taylor - 11.08.2010
Your posting a lot of posts huh? xD
Im not all that great at coding so maybe this will work
Код:
OnPlayerDeath(playerid, killerid, reason){
new Player[MAX_PLAYER_NAME];
GetPlayerName(playerid,Player,sizeof(Player));
format(string, sizeof(string), "\"%s\" is now a hunter!",Player);
SendClientMessageToAll(0xAA3333AA,string);
}
if that doesn't work, maybe this?
Код:
OnPlayerDeath(playerid, killerid, reason){
new Player[MAX_PLAYER_NAME];
Player = GetPlayerName(playerid,Player,sizeof(Player));
format(string, sizeof(string), "\"%s\" is now a hunter!",Player);
SendClientMessageToAll(0xAA3333AA,string);
}