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

Client_... + Menu


  
 
 
Thread Tools Display Modes
AlgoChikitito
BANNED
Join Date: Feb 2011
Location: Espaņa
Old 10-05-2012 , 21:48   Re: Client_... + Menu
#11

Stereo me dijo que aria unas reglas, y si cerraban el menu o le daban a que no

- Retry

Asi tendrias alguien en tu servidor xD
AlgoChikitito is offline
Manu127
Veteran Member
Join Date: Jul 2010
Location: Argentina
Old 10-06-2012 , 01:48   Re: Client_... + Menu
#12

Quote:
Originally Posted by AlgoChikitito View Post
Stereo me dijo que aria unas reglas, y si cerraban el menu o le daban a que no

- Retry

Asi tendrias alguien en tu servidor xD
Ammm ... no da tirarle retry ...

Yo me referia mas a algo asi

PHP Code:
#include <amxmodx>

new g_menu

new const g_rules[ ][ ] = {
    
"No insultar",
    
"No bug",
    
"No fosa",
    
"No rush"
}, g_reason[ ] = "Si no aceptas, no juegas"

public plugin_init()
{
    
register_plugin"Rules","1.0","Manu" )
    
    new 
data[256] = "Reglas a cumplir\w^n",i;
    
    for( ;
sizeof(g_rules);i++ )
    {
        
adddata,255,"^n" )
        
        
adddata,255,g_rules] )
    }
    
    
g_menu menu_createdata,"menu_handler" )
    
    
menu_additemg_menu,"Si\y, acepto","1" 
    
menu_additemg_menu,"No\r, no acepto","2" 
    
    
menu_setpropg_menu,MPROP_EXIT,MEXIT_NEVER )  
}

public 
menu_handlerid,menu,item )
{
    static 
name[32];get_user_nameid,name,31 
    
    if( 
item )
    {
        
client_print0,print_chat,"[ NZ ] El jugador ^"%s^" ha rechazado las reglas.",name )
        
        
message_beginMSG_ONE,SVC_DISCONNECT,_,id )
        
write_stringg_reason )
        
message_end( )
        
        return;
    }
    
    
client_print0,print_chat,"[ NZ ] El jugador ^"%s^" ha aceptado las reglas.",name );


public 
client_putinserverid set_task5.0,"show_menu_rules",id )

public 
show_menu_rulesid menu_displayid,g_menu 
PD: El svc_disconnect es solo una parte del kick... lo dijo connor mepa... aunque lo use igual xD
__________________

Last edited by Manu127; 10-06-2012 at 01:49.
Manu127 is offline
Send a message via MSN to Manu127 Send a message via Skype™ to Manu127
 



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