Textdraw prize
#1

I was trying smth but its was useless! How can i make somebody kill player textdraw will be show on the screen example 1000+
+1 Score ? and textdraw will be disapear after some sec!
Reply
#2

I recommend to use GameTextForPlayer do to this.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
GameTextForPlayer(killerid"+1000$ and +1 Score"10004);
    return 
1;

Visit https://sampwiki.blast.hk/wiki/GameTextStyle for all GameTextStyles.
Reply
#3

Quote:
Originally Posted by GangstaSunny
Посмотреть сообщение
I recommend to use GameTextForPlayer do to this.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
GameTextForPlayer(killerid"+1000$ and +1 Score"10004);
    return 
1;

Visit https://sampwiki.blast.hk/wiki/GameTextStyle for all GameTextStyles.
Well Thank you but how i can do is as textdraw and timer?
Reply
#4

Try to use gametext:
pawn Код:
GameTextForPlayer(killerid, "~w~1000+~n~~y~+1 Score", 3000, 0);
Slowpoke))

Yeah, you can use timer + textdraw, but WHY?
Reply
#5

Quote:
Originally Posted by OKStyle
Посмотреть сообщение
Try to use gametext:
pawn Код:
GameTextForPlayer(killerid, "~w~1000+~n~~y~+1 Score", 3000, 0);
Slowpoke))

Yeah, you can use timer + textdraw, but WHY?
I dont wanna this i wanna know how to made a this as a textdraw
Reply
#6

PHP код:
new PlayerText:KillerTextdraw[MAX_PLAYERS];
forward HideKillerTextdraw(playerid);
public 
OnPlayerConnect(playerid)
{
    
KillerTextdraw[playerid] = CreatePlayerTextDraw(playerid320.0240.0"+1000$ and 1 Score");
    return 
1;
}
public 
HideKillerTextdraw(playerid)
{
    
PlayerTextDrawHide(playeridKillerTextdraw[playerid]);
    return 
0;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    
PlayerTextDrawShow(killeridKillerTextdraw[killerid]);
    
SetTimerEx("HideKillerTextdraw"30000"i"killerid);
    return 
1;

//edit
i dont f#cking know why am i using player textdraw.. lol.
Use a standard textdraw.
Reply
#7

Quote:
Originally Posted by GangstaSunny
Посмотреть сообщение
PHP код:
// CODE 
//edit
i dont f#cking know why am i using player textdraw.. lol.
Use a standard textdraw.
This will not work as you haven't included the textdraw settings, you need to use player textdraws not global textdraws.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)