Simple question [+rep] - 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: Simple question [+rep] (
/showthread.php?tid=310616)
Simple question [+rep] -
Twinki1993 - 13.01.2012
Well I want to make something but I don't get it how I can do it... On the left side you see that messages saying like
Cops Weapons
Shotgun
MP5
M4
How to make that?
Re: Simple question [+rep] -
Tanush123 - 13.01.2012
Using Textdraws
Re: Simple question [+rep] -
Twinki1993 - 13.01.2012
Yeah but can I make it to be like
GetPlayerWeapons(playerid);
TextDrawCreate(548, 130, "%s");
Something like that.
Something like TextDrawShowForPlayer(playerid,Weapons);
Re: Simple question [+rep] -
Twinki1993 - 13.01.2012
Okay, Now I have resolved the thing about this, but still how do I update them?
Quote:
if(classid == 0)
{
gTeam[playerid] = TEAM_RUSSIA;
SetPlayerTeam(playerid,TEAM_RUSSIA);
TextDrawShowForPlayer(playerid, Text:Russian);
TextDrawFont(Text:Russian , 0);
TextDrawLetterSize(Text:Russian , 0.5, 3.5);
TextDrawColor(Text:Russian , 0xFF0000FF);
TextDrawSetOutline(Text:Russian , 0);
TextDrawSetProportional(Text:Russian , 1);
TextDrawSetShadow(Text:Russian , 1);
|
Like if player changes the skin it shows him other stuff
Re: Simple question [+rep] -
Tanush123 - 13.01.2012
ok when they switch to classid == 1, make
pawn Код:
TextDrawHideForPlayer(Playerid....);//just hide all the gun textdraws
TextDrawShowForPlayer(playerid...);//the textdraws you want to show
Re: Simple question [+rep] -
thimo - 13.01.2012
Its easy use cases on request class... and make a textdraw wich shows and destroys itself again when spawned