| scottyk87 |
04-24-2005 22:52 |
Terrorist Team Locker
1 Attachment(s)
This plugin is for a jump server since there are some maps that allow you to go T when you shouldent. This person sent me this plugin that was in french but someone translated it for me. I tested it and it works excpet that it doesn't block auto select and then when you press it you go terrorist so if someone could just add auto select blocking it would be perfect. Thank you.
Code:
/* AMX Mod X 0.16 script.
*
* (c) 2005-2006, * Cs-AmX | NoEx * @ www.cs-amx.com
* This file is provided as is (no warranties).
*
* -= Terrorist Team Locker =-
*
*
* This plugin allows to block the Terrorist team.
* in the map kz_kzfr_militarycamp by Muska0tic...
*
*
* Coders note: Thank you for not modifying the source of this plugin
* without saying the name of the original coders plugin
*
*/
#include <amxmodx>
new blockjoining[6]
public admin_lockt() {
blockjoining[ 0 ] = PLUGIN_HANDLED
return PLUGIN_HANDLED
}
public teamselect(id, key){
if ( blockjoining[ key ] == PLUGIN_HANDLED ){
client_print(id,print_center,"This team is blocked. Join the counter-terrorist team...")
client_print(id,print_chat,"* Terrorist Team Locker Plugin By NoEx *")
engclient_cmd(id,"chooseteam")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public client_connect ( id ) {
set_user_info(id,"_vgui_menus","0")
return PLUGIN_HANDLED
}
public jointeam(id) {
if ( blockjoining[0] == PLUGIN_HANDLED ) {
client_print(id,print_center,"This team is blocked. Join the counter-terrorist team...")
client_print(id,print_chat,"* Terrorist Team Locker Plugin By NoEx *")
client_cmd(id, "menuselect", "1" )
client_cmd(id, "menuselect", "5" )
client_cmd(id,"slot1")
set_user_info(id,"_vgui_menus","0")
return PLUGIN_HANDLED
}
if ( blockjoining[1] == PLUGIN_HANDLED ) {
client_print(id,print_center,"This team is blocked. Join the counter-terrorist team...")
client_print(id,print_chat,"* Terrorist Team Locker Plugin By NoEx *")
client_cmd(id, "menuselect", "2" )
client_cmd(id, "menuselect", "5" )
client_cmd(id,"slot1")
set_user_info(id,"_vgui_menus","0")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("Terro Team Locker","1.0","NoEx")
admin_lockt()
register_menucmd(register_menuid("Team_Select",1),(1<<0)|(1<<1)|(1<<4)|(1<<5),"teamselect")
register_clcmd("jointeam","jointeam")
return PLUGIN_CONTINUE
}
|