Raised This Month: $51 Target: $400
 12% 

RCON commands in plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pote911
Junior Member
Join Date: Jan 2009
Location: Lithuania
Old 03-29-2012 , 18:04   RCON commands in plugin
Reply With Quote #1

Hello, I'm searching for plugin/code for my Clan Arena, now I try to explain what plugin must do.

So, when ONLY admin from users.ini with H level writes in server chat text e.g. .live then plugin load from server.cfg alias live or it can execute .cfg file from cstrike folder or sth.. I think it's simple code, it can't be hard to do.

It would be something like this:

Admin with H level writes in chat: .start
*Then server says*
<Arena> *** All players ready up, game starting!
<Arena> *** Three restarts then game is live!
<Arena> *** Game is ON
<Arena> *** Good Luck Have Fun

Thanks.


Sory, Just found already...

Last edited by Pote911; 03-29-2012 at 18:34. Reason: found
Pote911 is offline
Send a message via MSN to Pote911 Send a message via Yahoo to Pote911 Send a message via Skype™ to Pote911
DarkT1
Member
Join Date: Oct 2011
Old 03-30-2012 , 05:03   Re: RCON commands in plugin
Reply With Quote #2

there u go-

PHP Code:
#include <amxmodx>  

#define PLUGIN "start"  
#define VERSION "0.1"  
#define AUTHOR "dark"  

public plugin_init() {  
     
    
register_plugin(PLUGINVERSIONAUTHOR)  
      
    
register_clcmd("say .start""start")  
    
register_clcmd("say_team .start""start")  
}  
      
public 
start(id)  
{  
    
server_cmd("exec start.cfg")  

and put the start.cfg in ctrike your FTP, then put there commands

like

say GL HF

and it will be..

<Arena> GL HF
DarkT1 is offline
Reply



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 21:10.


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