hii every body
is it possible to send two command randomly or by team wise
for an example i have a hero plugin and when hero come it buy a gun or send a clientcommand "buy_gun" and he buy a gun and i does not have the soruce code of that hero so i am thinking that how to make a public function in a new plugin which has register_clcmd(buy_gun) so that it send the two client command randomly or by team wise in which the other two plugin will have cmd like clientcmd: buy_gun1 and buy_gun2
i just tried this
PHP Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("buygun", "buygun")
}
public buy_gun(id)
}
switch(iTeam){
case 1:
{
client_cmd(i"buy_gun1")
}
case 2:
{
client_cmd("buy_gun2")
}
i think all clear may be
__________________