Raised This Month: $ Target: $400
 0% 

[REQ] Need a simple script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kallen
Junior Member
Join Date: Mar 2016
Old 04-09-2016 , 10:23   [REQ] Need a simple script
Reply With Quote #1

I need a script, I write something in the console server to stop (without admin)
kallen is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-09-2016 , 10:34   Re: [REQ] Need a simple script
Reply With Quote #2

amx_rcon exit ?!?!?
OciXCrom is offline
Send a message via Skype™ to OciXCrom
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-09-2016 , 13:20   Re: [REQ] Need a simple script
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
amx_rcon exit ?!?!?
Without admin
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 04-09-2016 , 13:44   Re: [REQ] Need a simple script
Reply With Quote #4

Should do the job
PHP Code:
#include <amxmodx>
#include <engine>

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


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("stop_server""funcStop");
}

public 
funcStop(id)
    
remove_entity(id); 

Last edited by didoWEE; 04-09-2016 at 13:45.
didoWEE is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-09-2016 , 14:07   Re: [REQ] Need a simple script
Reply With Quote #5

Quote:
Originally Posted by didoWEE View Post
Should do the job
PHP Code:
#include <amxmodx>
#include <engine>

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


public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("stop_server""funcStop");
}

public 
funcStop(id)
    
remove_entity(id); 
Or:

PHP Code:
#include <amxmodx>
 
#define PLUGIN "Stop Server"
#define VERSION "1.0"
#define AUTHOR "EFFx"

public plugin_init() 
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
 
register_clcmd("say /stop","StopServer")
}
public 
StopServer() server_cmd("exit"
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
kallen
Junior Member
Join Date: Mar 2016
Old 04-09-2016 , 20:15   Re: [REQ] Need a simple script
Reply With Quote #6

Thanks very much :*
kallen 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 20:16.


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