Textdraw prize - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Textdraw prize (
/showthread.php?tid=612584)
Textdraw prize -
Hunud - 19.07.2016
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!
Re: Textdraw prize -
GangstaSunny - 19.07.2016
I recommend to use GameTextForPlayer do to this.
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(killerid, "+1000$ and +1 Score", 1000, 4);
return 1;
}
Visit
https://sampwiki.blast.hk/wiki/GameTextStyle for all GameTextStyles.
Re: Textdraw prize -
Hunud - 19.07.2016
Quote:
Originally Posted by GangstaSunny
I recommend to use GameTextForPlayer do to this.
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(killerid, "+1000$ and +1 Score", 1000, 4);
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?
Re: Textdraw prize -
OKStyle - 19.07.2016
Try to use gametext:
pawn Код:
GameTextForPlayer(killerid, "~w~1000+~n~~y~+1 Score", 3000, 0);
Slowpoke))
Yeah, you can use timer + textdraw, but WHY?
Re: Textdraw prize -
Hunud - 19.07.2016
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
Re: Textdraw prize -
GangstaSunny - 19.07.2016
PHP код:
new PlayerText:KillerTextdraw[MAX_PLAYERS];
forward HideKillerTextdraw(playerid);
public OnPlayerConnect(playerid)
{
KillerTextdraw[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "+1000$ and 1 Score");
return 1;
}
public HideKillerTextdraw(playerid)
{
PlayerTextDrawHide(playerid, KillerTextdraw[playerid]);
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerTextDrawShow(killerid, KillerTextdraw[killerid]);
SetTimerEx("HideKillerTextdraw", 3000, 0, "i", killerid);
return 1;
}
//edit
i dont f#cking know why am i using player textdraw.. lol.
Use a standard textdraw.
Re: Textdraw prize -
Logic_ - 19.07.2016
Quote:
Originally Posted by GangstaSunny
//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.