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



OnPlayerRequestClass help - StrickenKid - 21.02.2009

i need help, im making a cops and robbers server and when the player is scimming though the characters, i want the text of what the actual character is shown up... like "cops" or "civilian", then if the player chooses the cop their color needs to be blue, and anything else the color needs to be white.

thx for anyone who can help!


Re: OnPlayerRequestClass help - My_Waffles_Bitch_L0L - 21.02.2009

use teams :>


Re: OnPlayerRequestClass help - StrickenKid - 21.02.2009

idk how :P


Re: OnPlayerRequestClass help - My_Waffles_Bitch_L0L - 21.02.2009

well, it could actually be interesting with text for each player class, ive been lookin for taht. but if u wanna know bout tah teams, look in sum gamemodes [SFTDM could be a good example] or read tah samp wiki :>


Re: OnPlayerRequestClass help - Grim_ - 21.02.2009

pawn Код:
if(classid == 0)
{
 GameTextForPlayer(playerid, "~g~texthere", 5000, 5);
}
if(classid == 1)
{
 GameTextForPlayer(playerid, "~g~texthere", 5000, 5);
}
//and so on



Re: OnPlayerRequestClass help - My_Waffles_Bitch_L0L - 21.02.2009

Quote:
Originally Posted by [RPr
Icy_Cold ]
pawn Код:
if(classid == 0)
{
 GameTextForPlayer(playerid, "~g~texthere", 5000, 5);
}
if(classid == 1)
{
 GameTextForPlayer(playerid, "~g~texthere", 5000, 5);
}
//and so on
where should i add taht? :>


Re: OnPlayerRequestClass help - Grim_ - 21.02.2009

Under the OnPlayerRequestClass public...