• LUA Features
    4 replies, posted
Hello I have made/making a gamemode and I need to know how to go about checking if a player is already a team. EG There is already a "Police Chief" so someone else can not be that team ( team.SetUp ) Also I would like to know how to force a playermodel on a player / disable them changing it ( When you hold 'C' ) I have already tried: function GM:PlayerInitialSpawn( ply ) ply:PrintMessage( HUD_PRINTTALK, " Welcome to WholeGamer RolePlay! " ) ply:PrintMessage( HUD_PRINTTALK, " Please Press F4 to open the job selection menu. " ) util.PrecacheModel( "models/player/group01/Male_09.mdl" ) ply:SetModel( "models/player/group01/Male_09.mdl" ) <----- This ply:SetTeam( 1 ) RunConsoleCommand( "_wgrp_citizen" ) end Any help is good, Thanks
if you don't know if a player is already a team, then you need to go back over your Lua
That is not what I mean, I need a limit on how many players can become a team.
#team.GetPlayers( team )
Thankyou [editline]16th April 2013[/editline] Any help with the models? I would like a model and that model only be able to be used for a team, eg Citizen, no matter what model the selected via the 'C' menu is always: "models/player/group01/Male_09.mdl"
Sorry, you need to Log In to post a reply to this thread.