Raised This Month: $ Target: $400
 0% 

Someone knows how to...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-27-2010 , 12:16   Re: Someone knows how to...
Reply With Quote #10

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "#8 SickneSS"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say","hook")
}

public 
hook(id) {
    
    new 
said[192]
    
read_args(said,191)
    
remove_quotes(said)
    
    new 
Restart[11]
    new 
Value[11]
    
    
strbreak(said,Restart,10,Value,10)

    if(
equali(Restart,"/rr"))
    {
        if(
equal(Value,""))
        {
            
server_cmd("sv_restart 1")
            
client_print(id,print_chat,"Restart por 1")
        }
        else
        {
            
server_cmd("sv_restart %d",str_to_num(Value))
            
client_print(id,print_chat,"Restart por %d",str_to_num(Value))
        }
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

I Made this,but I can't take if is str num or is more than 60,because if I put that,doesn't do nothing when I put only /rr

btw : i will made a const to type !rr /rr .rr or /r !r .r or !restart /restart .restart

Last edited by #8 SickneSS; 05-27-2010 at 12:21.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 



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 05:23.


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