Help with showing name on death
#1

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?
Reply
#2

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

}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)