help me with Class Selection Showing the class name - 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 with Class Selection Showing the class name (
/showthread.php?tid=125764)
help me with Class Selection Showing the class name -
The_Cobra - 05.02.2010
hello guys
i need help
Class Selection - Showing the class name?
how?
Re: help me with Class Selection Showing the class name -
CrucixTM - 05.02.2010
I had same problem, no help and I couldn't find it anywhere - So now I'll save you the trouble mate:
Code:
if(classid == 0) {
GameTextForPlayer(playerid,"~n~~n~~n~~n~~b~POLICE~n~~w~Cop",6000,5);
} else if(classid == 1) {
GameTextForPlayer(playerid,"~n~~n~~n~~n~~b~BALLAS~n~~w~Gangster",6000,5);
This shows the classes Team (POLICE or BALLAS in this case) and the specific class name underneath their team name, in the bottom of the screen(just above the [<< >> Spawn] panel)
Stays for 6 seconds. Edit 6000 to how many seconds you want(in miliseconds)
Classids: The first class you added (the one on top of the AddPlayerClass list) is classid 0. The next one is classid 1, then 2, 3, 4 and so on. Add this code under 'public OnPlayerRequestClass(playerid, classid)'.
There you go mate
Re: help me with Class Selection Showing the class name -
CrucixTM - 05.02.2010
Oh and the ~n~ means "New Line", and theres so many because I want my text in the bottom of the screen not in the middle. The others are colors:
~w~ White
~b~ Blue
~g~ Green
~r~ Red
~y~ Yellow
Probably more. Hope this helps.