Help with Class 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: Help with Class selection (
/showthread.php?tid=93233)
Help with Class selection -
bubka3 - 24.08.2009
So lets say I am on my classid 0, it would say Cop in the middle and when u spawn it goes away. How can I make it do this
Re: Help with Class selection -
Backwardsman97 - 24.08.2009
You use a switch statement under OnPlayerRequestClass and see if the case is 0 and if it is, show some gametext.
Re: Help with Class selection -
bubka3 - 24.08.2009
I have no clue how do that....
Re: Help with Class selection -
Mr_Finnigan - 24.08.2009
Код:
public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~g~Worker", 500, 3);
}
case 1:
{
GameTextForPlayer(playerid, "~g~Pimp", 500, 3);
}
case 2:
{
GameTextForPlayer(playerid, "~g~Triad", 500, 3);
}
case 3:
{
GameTextForPlayer(playerid, "~g~FBI", 500, 3);
}
}
return 1;
}
Re: Help with Class selection -
kidx - 24.08.2009
ok is that a filter or no or what shoult it be added to the mod.