SA-MP Forums Archive
Gametext abody Skin Selection - 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: Gametext abody Skin Selection (/showthread.php?tid=140133)



Gametext abody Skin Selection - Jochemd - 07.04.2010

Hello,

As you know I am making a Roleplay server. Now I want to add GameText above a players head. Like when you select a boy it shows above the skin: Boy.

I'm looking forward for you answers!

Regards, Jochem


Re: Gametext abody Skin Selection - Correlli - 07.04.2010

I believe that SFTDM.pwn script has something like that (but with teams, you can take it as an example), you can find it at the samp-server-package on the Downloads section - www.sa-mp.com


Re: Gametext abody Skin Selection - Jochemd - 07.04.2010

Ok, thank you. But maybe someone is able to explain it? So others don't have to ask this again but they can use search?


Re: Gametext abody Skin Selection - WardenCS - 07.04.2010

under
Код:
public OnPlayerRequestClass(playerid, classid)
add something like that
Код:
if(classid == 0)//change the id,0 is for first skin
{
format(string, sizeof(string), "~w~BOY");
GameTextForPlayer(playerid,string,3500,6);
}



Re: Gametext abody Skin Selection - Jochemd - 07.04.2010

Ok... But where is the 'string' usefull for in this kind of little script? You only use plain text, and no playernames or that


Re: Gametext abody Skin Selection - Correlli - 07.04.2010

You don't need to format that message.

You can just do it like this:
pawn Код:
GameTextForPlayer(playerid, "~w~BOY", 3500, 6);



Re: Gametext abody Skin Selection - biltong - 07.04.2010

Don's got it right. Also remember that classid corresponds to the order in which you add classes, they aren't the same as skin ids. So if you add a cop's skin first, then a cluckin bell dude, then CJ, the cop's classid will be 0, the cluckin bell dude's would be 1, and CJ's would be 2.