AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team changing with out killing (https://forums.alliedmods.net/showthread.php?t=63624)

purple nurple 11-25-2007 18:38

Team changing with out killing
 
Is there a way to change someones team with out killing them?

hugz` 11-25-2007 19:06

Re: Team changing with out killing
 
Yes there is, you might search for advance team transfer or something like that.

[ --<-@ ] Black Rose 11-26-2007 01:22

Re: Team changing with out killing
 
cs_set_user_team()
cs_reset_user_model()

Alka 11-26-2007 09:01

Re: Team changing with out killing
 
There is a plugin up here, by jghg with team transfer without killing, and respawn.

ConnorMcLeod 11-26-2007 09:23

Re: Team changing with out killing
 
from amx2006.3 plmenu.sma, fm converted :

Code:
stock setUserTeam_cs(index,team,respawn=0,updatescoreboard=1) {   if(is_user_connected(index)) {     if(team >= 0 && team <= 3) {       set_pdata_int(index, 114, team)       if(is_user_alive(index)) {         engclient_cmd(index, "drop", "weapon_c4")         if(team != 2) {           new defuser = get_pdata_int(index, 193)           if(defuser & (1<<16)) {             defuser -= (1<<16)             set_pdata_int(index, 193, defuser)           }           message_begin(MSG_ONE, get_user_msgid("StatusIcon"), {0,0,0}, index)           write_byte(0)           write_string("defuser")           write_byte(0)           write_byte(255)           write_byte(0)           message_end()         }       }       if(respawn) {         new health = get_user_health(index)         new armor = get_user_armor(index)         set_pev(index, pev_spawnflags, 3)         dllfunc(DLLFunc_Spawn, index)         set_pev(index, pev_iuser1, 0)         set_pev(index, pev_health, float(health))         set_pev(index, pev_armorvalue, float(armor))       }       if(updatescoreboard) {         message_begin(MSG_ALL, get_user_msgid("TeamInfo"))         write_byte(index)         switch(team) {           case 1: write_string("TERRORIST")           case 2: write_string("CT")         }         message_end()       }       return 1     }   }   return 0 }

djmd378 11-26-2007 23:40

Re: Team changing with out killing
 
easiest way is to do what black rose said

purple nurple 11-27-2007 20:29

Re: Team changing with out killing
 
Thanks connorr i will try that!

purple nurple 11-27-2007 20:30

Re: Team changing with out killing
 
Quote:

Originally Posted by djmd378 (Post 557300)
easiest way is to do what black rose said

It doesn't?

[ --<-@ ] Black Rose 11-28-2007 01:21

Re: Team changing with out killing
 
No it doesn't.

Alka 11-29-2007 08:06

Re: Team changing with out killing
 
Quote:

Originally Posted by purple nurple (Post 557631)
Yes but that kills the person silly

lawl, no it doesn't. -.-'


All times are GMT -4. The time now is 01:19.

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