25.02.2013, 13:01
Hi, what can I do so that when a player dies a will appear on to of hes/her head. for example if I shoot you and you die on of you head will say "Eliminated". help please.
//Add this under OnPlayerDeath.
GameTextForPlayer(playerid,"Eliminated", 3000, 0);
Wiki page GameTextForPlayer
E.G: pawn Код:
|
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerChatBubble(playerid, "ELIMINATED", 0xFFFF0000, 100.0, 5000); // put this somewhere in your OnPlayerDeath
return 1;
}
Try:
pawn Код:
|
@Dark he meant a text above his head, not on the screen.
Use https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer |