Gametext abody Skin Selection
#1

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
Reply
#2

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
Reply
#3

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?
Reply
#4

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);
}
Reply
#5

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

You don't need to format that message.

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

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.
Reply


Forum Jump:


Users browsing this thread: