Raised This Month: $ Target: $400
 0% 

Change users team without restrictions?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-07-2004 , 05:43  
Reply With Quote #2

For CS you can look through the CS include file to find:

Code:
/* Get team directly from player's entity.  * 1 = terrorist  * 2 = counter-terrorist  * 3 = spectator  */ enum CsTeams {     CS_TEAM_T = 1,     CS_TEAM_CT = 2,     CS_TEAM_SPECTATOR = 3 }; native cs_get_user_team(index); /* Set user team without killing player.  * If model is anything other than CS_DONTCHANGE, that will be set as player's model.  */ enum CsInternalModel {     CS_DONTCHANGE = 0,     CS_CT_URBAN = 1,     CS_T_TERROR = 2,     CS_T_LEET = 3,     CS_T_ARCTIC = 4,     CS_CT_GSG9 = 5,     CS_CT_GIGN = 6,     CS_CT_SAS = 7,     CS_T_GUERILLA = 8,     CS_CT_VIP = 9 }; native cs_set_user_team(index, team, model = CS_DONTCHANGE);

You could play around with setting team to other things than 1, 2 and 3(t, ct, spectator). It should be possible to make more teams, however you would have to do a number of other things to keep the game sane: Invent a system to make players in other teams spawn at other places around the map, you wouldn't want them to spawn among T or CT etc...
Also you would want to set some new set of models on new teams, to make it easy to tell friend from foe.
Might be other problems with this, but could be worth a try...
Johnny got his gun is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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