Raised This Month: $ Target: $400
 0% 

How to switch a player of team in game without slaying him ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
speedycvc
New Member
Join Date: Jun 2006
Old 06-21-2006 , 07:33   How to switch a player of team in game without slaying him ?
Reply With Quote #1

Hi, I want to know if I am not wrong about this idea:
I want to switch a player for example a terror in ct team, he is alive and I want to switch Him by the team menu. Evidently, I want to switch him without slaying him.

I think this is in the player menu. sma that I have to change something.

In this plug I find:

/* Team menu */

....
....
....
....

switch (get_cvar_num("amx_show_activity")) {
case 2: client_print(0,print_chat,"%L",id,"ADMIN_TRAN SF_2",name,name2,g_menuOption[id] ? "TERRORIST" : "CT" )
case 1: client_print(0,print_chat,"%L",id,"ADMIN_TRAN SF_1",name2,g_menuOption[id] ? "TERRORIST" : "CT" )
}

new limitt = get_cvar_num("mp_limitteams")
set_cvar_num("mp_limitteams",0)
user_kill(player,1) I think that I have to change the value to "0"
engclient_cmd(player, "chooseteam")
engclient_cmd(player, "menuselect", g_menuOption[id] ? "1" : "2" )
engclient_cmd(player, "menuselect", "5")
client_cmd(player,"slot1")
set_cvar_num("mp_limitteams",limitt)

displayTeamMenu(id,g_menuPosition[id])


Do you think that it's all ?
speedycvc is offline
 


Thread Tools
Display Modes

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 07:59.


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