How to make a text on top of the head
#1

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

Wiki page GameTextForPlayer
E.G:
pawn Код:
//Add this under OnPlayerDeath.
GameTextForPlayer(playerid,"Eliminated", 3000, 0);
Reply
#3

Quote:
Originally Posted by DaRk_RaiN
Посмотреть сообщение
Wiki page GameTextForPlayer
E.G:
pawn Код:
//Add this under OnPlayerDeath.
GameTextForPlayer(playerid,"Eliminated", 3000, 0);
that should do the job perfectly? does it matters if I put it at the beginning of OnPlayerDeath or at the end?
Reply
#4

@Dark he meant a text above his head, not on the screen.
Use https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
Reply
#5

Try:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerChatBubble(playerid, "ELIMINATED", 0xFFFF0000, 100.0, 5000); // put this somewhere in your OnPlayerDeath
    return 1;
}
Uses chatbubble, see https://sampwiki.blast.hk/wiki/SetPlayerChatBubble for usages
Reply
#6

Quote:
Originally Posted by Robo_N1X
Посмотреть сообщение
Try:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SetPlayerChatBubble(playerid, "ELIMINATED", 0xFFFF0000, 100.0, 5000); // put this somewhere in your OnPlayerDeath
    return 1;
}
Uses chatbubble, see https://sampwiki.blast.hk/wiki/SetPlayerChatBubble for usages
Is it possible to have a chatbubble for unlimited time btw?
Reply
#7

Quote:
Originally Posted by needhack
Посмотреть сообщение
@Dark he meant a text above his head, not on the screen.
Use https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
exactly, I'll try Robo's ( sadly I have to wait until I get home because I'm at work now)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)