Raised This Month: $ Target: $400
 0% 

randomly or team wise


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 11-13-2018 , 03:23   randomly or team wise
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
   
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
__________________
SED LYF !!!

Last edited by SHIELD755; 11-13-2018 at 03:29.
SHIELD755 is offline
 


Thread Tools
Display Modes

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 07:30.


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