Raised This Month: $ Target: $400
 0% 

Terrorist Team Locker


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
scottyk87
Junior Member
Join Date: Jun 2004
Old 04-24-2005 , 22:52   Terrorist Team Locker
Reply With Quote #1

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
 }
Attached Files
File Type: sma Get Plugin or Get Source (terro_teamlocker.sma - 855 views - 2.0 KB)
scottyk87 is offline
Send a message via MSN to scottyk87
 



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 16:46.


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