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(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /buyak","cmd_getak")
}
public cmd_getak(id){
if(get_user_team(id) != 1){
ColorChat(id, RED,"[Jailbreak]Only Guards Can Use Weapons Cmds")
}
}
else if(get_user_team(id) != 2{
give_item(0,weapon_ak47)
}
}