Raised This Month: $ Target: $400
 0% 

Question about Displaying a user


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
puttsmobiles
Senior Member
Join Date: Mar 2009
Location: Chicago
Old 10-17-2010 , 01:39   Re: Question about Displaying a user
Reply With Quote #7

I sort of messed up and gave you guys the old code :s

PHP Code:
#include < amxmodx > 

#define TASK_PRINT_TEXT 135784 // random num 

new g_iFirstPlayer

new 
pCvarFlags

public 
plugin_init( ) 

    
register_plugin"First Player Flags""0.0.1""Exolent" ); 
     
    
pCvarFlags register_cvar"first_player_flags""b" ); 


public 
client_putinserveriPlayer 

    if( !
g_iFirstPlayer 
    { 
        
g_iFirstPlayer iPlayer
        
SetUserFlagsiPlayer ); 
       
        
remove_task(TASK_PRINT_TEXT); 
        
set_task(15.0"PrintText"TASK_PRINT_TEXT); 
    } 


public 
PrintText() 

    if( 
g_iFirstPlayer && is_user_connected(g_iFirstPlayer) ) 
    { 
        
client_printg_iFirstPlayerprint_chat"[Practice Mod] Please use .menu to configure the server" 
    } 


public 
client_infochangedid 

    if( 
id == g_iFirstPlayer 
    { 
        
SetUserFlagsid ); 
    } 


public 
client_disconnectiPlayer 

    if( 
g_iFirstPlayer == iPlayer 
    { 
        
g_iFirstPlayer 0
        
remove_task(TASK_PRINT_TEXT); 
    } 


SetUserFlagsid 

    new 
szFlags27 ]; 
    
get_pcvar_stringpCvarFlagsszFlagscharsmaxszFlags ) ); 
    
set_user_flagsidread_flagsszFlags ) ) 

Is there a way to get that message to show to all the people that will join the server and use the new code?
__________________
Dan Hiorns - www.danhiorns.us
puttsmobiles is offline
Send a message via AIM to puttsmobiles Send a message via MSN to puttsmobiles Send a message via Yahoo to puttsmobiles Send a message via Skype™ to puttsmobiles
 



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 22:41.


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