[Help] How to I add player classes for players depending on their team choise?
#1

Before class selection, the player choses their team (0=civi, 1=Team Blue, 2=Team Green). I used the code TeamID[playerid] = 0; to set teams. I want it where your chose of playable skins is dependant on what your team id is. If the player chose 0, they would only see and be able to chose from civillian skins. If the player is on team 1, they get some military skins, and on team 2 they would get other military skins.

Feel free to ask questions, and thanks for the help.
Reply
#2

The only library i know that lets you do this is y_classes part of YSI.
Reply
#3

Another way could be to make a custom class selection by spawning directly the player with SpawnPlayer and then moving him to a specific location, freezing him, editing his camera position and rotation, adding "next" and "previous" textdraws that can be clicked to change class, and detecting left and right keys to do the same thing (additional).
It's not very hard but it takes hours.. especially for textdraws and camera positions..
Reply
#4

Thx [GF]Sasino97, thats a good idea. Would anyone know of someone posting a code like this that i could just edit? it would be easyer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)