mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Added cstrike specific switch
This commit is contained in:
parent
245054cf48
commit
d05c381789
@ -32,9 +32,16 @@
|
||||
* version.
|
||||
*/
|
||||
|
||||
//Uncomment to enable cstrike specific features
|
||||
//#define CSTRIKE 1
|
||||
|
||||
#include <amxmodx>
|
||||
#include <amxmisc>
|
||||
|
||||
#if defined CSTRIKE
|
||||
#include <cstrike>
|
||||
#endif
|
||||
|
||||
new g_menuPosition[33]
|
||||
new g_menuPlayers[33][32]
|
||||
new g_menuPlayersNum[33]
|
||||
@ -458,11 +465,15 @@ public actionTeamMenu(id,key) {
|
||||
case 1: client_print(0,print_chat,"%L",id,"ADMIN_TRANSF_1",name2,g_menuOption[id] ? "TERRORIST" : "CT" )
|
||||
}
|
||||
|
||||
#if defined CSTRIKE
|
||||
cs_set_user_team(player, g_menuOption[id] ? 1 : 2)
|
||||
#else
|
||||
new limit_setting = get_cvar_num("mp_limitteams")
|
||||
set_cvar_num("mp_limitteams", 0)
|
||||
engclient_cmd(player, "jointeam", g_menuOption[id] ? "1" : "2")
|
||||
engclient_cmd(player, "joinclass", "1")
|
||||
set_cvar_num("mp_limitteams", limit_setting)
|
||||
#endif
|
||||
|
||||
displayTeamMenu(id,g_menuPosition[id])
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user