How to switch a player of team in game without slaying him ?
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 ? |
Wait to execute it until you know the user has died or the end of the round.
|
Code:
|
Quote:
Cheap_Suit I don't understand where I put this script? Is it an independant ittle plug to compile ? |
Remove all of this:
Code:
and add this Code:
and include cstrike: Code:
|
Actually should be
Code:
CsTeams tag is needed because obviously that he is using old amxx version (take a look at the code) and old cstrike.inc doesn't support untagged team variable for cs_set_user_team native. |
| All times are GMT -4. The time now is 07:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.