Need Class Colours and Names - 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: Need Class Colours and Names (
/showthread.php?tid=93624)
Need Class Colours and Names -
Demi - 26.08.2009
Well i need some labels that say terrorists cia and swat. Like if you joined a popular sever it will show the type of jobs when u scroll through the classes. It will say Terrorist or Cop in big letters. I need that for my dm server. So i was wondering if someone could help me with it. I remember i asked this long ago and someone just said to use this onplayercolour or something. Forgot what it was but i couldn't do it.
I also need teams like terrorists red and cops/swat/cia blue. So I'd appreciate if someone could give me the script for it or a detailed explanation/tutorial on how to do it. Since I can't find a good way on how to do it.
~Thanks
Re: Need Class Colours and Names -
GTA967 - 26.08.2009
hello demi so this is what you have been doing, anyway heres what ya need
https://sampwiki.blast.hk/wiki/GameTextForPlayer and for teams
https://sampwiki.blast.hk/wiki/PAWN_tutorial
Re: Need Class Colours and Names -
Demi - 26.08.2009
Nahh lol just came back after a longgggggg time. I'd go on server but its so crowded now =\ I visit daily though, only for a few minutes though =S
And the gametextforplayer thing i Don't get could you explain it to me?
Re: Need Class Colours and Names -
GTA967 - 26.08.2009
sure you`ll do this in OnPlayerRequestClass you`ll do something like this
Код:
if (classid == 0)
{
GameTextForPlayer(playerid,"CIA",5000,5);//GameTextForPlayer(playerid,const,time in milisecs,style);
}
else if (classid == 1)
{
GameTextForPlayer(playerid,"~r~Terrorist",5000,5);
}
a list of styles and color can be found here
https://sampwiki.blast.hk/wiki/GameTextStyle