AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model Help (https://forums.alliedmods.net/showthread.php?t=10706)

FoX Rider 02-26-2005 23:20

Model Help
 
How would I make it so u change a players model depending on what team he is on. Like say I was on T and I wanted to change into a CT. How would I go about doing that?

XxAvalanchexX 02-27-2005 00:10

cs_set_user_model

v3x 02-27-2005 00:25

Re: Model Help
 
Quote:

Originally Posted by FoX Rider
How would I make it so u change a players model depending on what team he is on. Like say I was on T and I wanted to change into a CT. How would I go about doing that?

Code:
new model[32] cs_get_user_model(id, model, 31) new CsTeams:team = cs_get_user_team(id) switch(team) { case CS_TEAM_CT: cs_set_user_model(id,"leet") // If they are on CT ... Give them a T model case CS_TEAM_T: cs_set_user_model(id,"gign") // If they are on T ... Give them a CT model default: cs_set_user_model(id,"model") }

Or something like that..


All times are GMT -4. The time now is 14:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.