Monthly Target: $400 Donations: $344
 86% 

Obtener lo que se escribe en un messagemode


  
 
 
Thread Tools Display Modes
Author Message
LeeanAndNeka
Senior Member
Join Date: Feb 2012
Location: Argentina ♥
Old 03-25-2012 , 19:30   Obtener lo que se escribe en un messagemode
#1

Bueno la cosa es asi.. En un menu el admi presiona una opcion, la cual deberia aparecerle un messagemode. Yo lo que quiero que lea eso y lo ponga como password del servidor.

Desde ya muchas gracias.
LeeanAndNeka is offline
Send a message via MSN to LeeanAndNeka Send a message via Skype™ to LeeanAndNeka
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 03-25-2012 , 19:48   Re: Obtener lo que se escribe en un messagemode
#2

para que te des una idea.. creo q funcionaria xD
PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /password""cmdPassword"ADMIN_CFG)
    
register_clcmd("Change_Password""cmdChangePassword"ADMIN_CFG)
}

public 
cmdPassword(id)
    
client_cmd(id"messagemode Change_Password")
    
public 
cmdChangePassword(id) {
    new 
pw[32]
    
read_args(pwcharsmax(pw))
    
    
remove_quotes(pw)
    
    if(
equal(pw""))
        
server_cmd("sv_password ^"^"")
    else
        
server_cmd("sv_password ^"%s^""pw)

__________________

www.amxmodx-es.com

Steam: Luchokoldo

Last edited by rak; 03-25-2012 at 19:56. Reason: me olvide de remove_quotes xD
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
LeeanAndNeka
Senior Member
Join Date: Feb 2012
Location: Argentina ♥
Old 03-25-2012 , 20:09   Re: Obtener lo que se escribe en un messagemode
#3

Gracias RAK ahora lo testearé.
LeeanAndNeka is offline
Send a message via MSN to LeeanAndNeka Send a message via Skype™ to LeeanAndNeka
Old 03-25-2012, 20:41
LeeanAndNeka
This message has been deleted by LeeanAndNeka.
 


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 16:04.


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