SA-MP Forums Archive
Help me how can I put text when someone chooses skin. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me how can I put text when someone chooses skin. (/showthread.php?tid=149475)



Help me how can I put text when someone chooses skin. - GangsTa_ - 22.05.2010

Hi guys.
I'm a scripting beginner and I searched in all wikipedia how can I put text when you select a skin.
Hmm, it should look like that:

As you can see, there writes LSPD: Police Officer
How can I make that text when someone chooses player?



Re: Help me how can I put text when someone chooses skin. - Darekfred - 22.05.2010

GameTextForPlayer

But if you would like to add different GameTextForPlayer's to any skin,
you will need to define a team.

At the top of the picture is TextDraw.


Re: Help me how can I put text when someone chooses skin. - GangsTa_ - 22.05.2010

Look, I got these skins in my script
Код:
      AddPlayerClass(280,1568.7148,-1691.8197,5.8906,177.0264,3,1,24,300,31,500); // Police Spawn
	AddPlayerClass(281,1568.7148,-1691.8197,5.8906,177.0264,3,1,24,300,31,500); // Police Spawn
	AddPlayerClass(282,1568.7148,-1691.8197,5.8906,177.0264,3,1,24,300,31,500); // Police Spawn
	AddPlayerClass(165,1800.2683,-1711.8138,13.5289,270.0873,3,1,24,300,31,500); // CIA Spawn
	AddPlayerClass(166,1800.2683,-1711.8138,13.5289,270.0873,3,1,24,300,31,500); // CIA Spawn
	AddPlayerClass(285,783.5727,-1352.3845,13.5475,90.8121,3,1,24,300,31,500); // SWAT Spawn
	AddPlayerClass(284,2457.1472,-1759.6659,13.5902,92.0654,3,1,24,300,31,500); // Biker Spawn
	AddPlayerClass(274,2036.5844,-1404.5139,17.2574,89.2454,3,1,24,300,31,500); // Medic Spawn
	AddPlayerClass(275,2036.5844,-1404.5139,17.2574,89.2454,3,1,24,300,31,500); // Medic Spawn
	AddPlayerClass(276,2036.5844,-1404.5139,17.2574,89.2454,3,1,24,300,31,500); // Medic Spawn
	AddPlayerClass(286,1381.3014,-1893.2122,13.4756,178.8595,3,1,24,300,31,500); // FBI Spawn
	AddPlayerClass(287,2735.6772,-2450.8533,17.5938,89.3902,4,1,29,999,38,9999); // Army Spawn
	AddPlayerClass(179,2735.6772,-2450.8533,17.5938,89.3902,4,1,29,999,38,9999); // Army Spawn
	AddPlayerClass(283,610.9720,-585.6549,17.2266,180.4715,3,1,24,300,31,500); // Sheriff Spawn
	AddPlayerClass(288,610.9720,-585.6549,17.2266,180.4715,3,1,24,300,31,500); // Sheriff Spawn
Can you make me a code that will write Police, SWAT, Sheriff, Army blahblah?
I just don't know how to define a team.