SA-MP Forums Archive
OnPlayerRequestClass - 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: OnPlayerRequestClass (/showthread.php?tid=146020)



OnPlayerRequestClass - shoru93 - 05.05.2010

So I have 3 skins to chose onplayerrequestclass
How to add for every skin his own text, and how to add colour for example if i chose first skin, then i got red colour or if i chose 2nd skin then i got blue colour...?


Re: OnPlayerRequestClass - Torran - 05.05.2010

pawn Код:
switch(classid)
{
case 0: // classid 0
{
Texthere
}
}
OR

pawn Код:
if(classid == 0)
{
Texthere
}
Replace 'texthere' with GameTextForPlayer(...
You know what i mean