#1

Hi, i got a question.

i would like to have a text in the chat saying "A player has just been killed" But instead of a player, it should be the players name, how do i fix that? This is what i've done sofar.

public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessageToAll(0xDEEE20FF, "A player has just been killed!"
return 1;
}

Thanks in forehand!
Reply
#2

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	new pName[MAX_PLAYER_NAME], Str[128];
	GetPlayerName(playerid, pName, sizeof(pName));
	format(Str, sizeof(Str), "%s has just been killed", pName);
	SendClientMessageToAll(-1, Str);
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)