Raised This Month: $ Target: $400
 0% 

invaild function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 04-24-2011 , 09:49   invaild function
Reply With Quote #1

i tried to make mod that when ct type /buyak the ct get ak
but if teror writes it says that he cant with colorchat can somone help
(the mod dont supposed to buy weapon,but to give weapon)
PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <engine>
#include <colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /buyak","cmd_getak")
}

public 
cmd_getak(id){
    if(
get_user_team(id) != 1){
        
ColorChat(idRED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
    }
}
    else if(
get_user_team(id) != 2{
        
give_item(0,weapon_ak47)
    }

Dr7sTyLe 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 20:00.


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