SA-MP Forums Archive
Modifying 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: Modifying class selection (/showthread.php?tid=151928)



Modifying class selection - Blades - 01.06.2010

I'm currently working on a team deathmatch mission.
Basically, my classes are Grove, Ballas or whatever, but I'm here to ask if there's a way to modify the class selection, as if an administrator starts some sort of team mission, everyone gets forced into class selection and can choose out of 4 skins, two for cops and two for criminals.
Can you modify it without having to switch a game mode?


Re: Modifying class selection - DJDhan - 01.06.2010

Well, to force a player into class Selection, use
Код:
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
  ForceClassSelection(i);
}
I didn't understand the rest of your query.


Re: Modifying class selection - IcyBlight - 01.06.2010

You also have to kill the player for ForceClassSelection to work, ie, SetPlayerHealth(i, 0);

I'm unsure if you can edit the classes available in the Class Selection, I'm afraid.