Raised This Month: $ Target: $400
 0% 

Team Restrict (TS)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
blackops7799
Senior Member
Join Date: May 2006
Old 09-23-2006 , 10:27   Team Restrict (TS)
Reply With Quote #1

Umm hey, Me and a friend of mine are trying to make a team blocker for TS. Can anyone help?


Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "Zombie Blocker"
#define VERSION "v1"
#define AUTHOR "BlueDevil"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)   
}
public client_infochanged(id)
{
    new model[33], authid[32], flags[33]
    get_user_info(id,"model",model[id],32)
    get_user_authid(id,authid,31)
    get_user_flags(id,flags,33)
    if(equali(model,"zombie") && !equali(flags,"ADMIN_BAN"))
    {
        client_print(id,print_chat,"[ZombieMod] Sorry but you are only allowed to be on the human team.")
        client_cmd(id,"model","human")
    }
    if(equali(model,"zombie2") && !equali(flags,"ADMIN_BAN"))
    {
        client_print(id,print_chat,"[ZombieMod] Sorry but you are only allowed to be on the human team.")
        client_cmd(id,"model","human")
    }
    return PLUGIN_HANDLED
}
blackops7799 is offline
 



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 04:52.


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