Raised This Month: $ Target: $400
 0% 

Client_print


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
eNz0
Member
Join Date: Feb 2010
Location: Lithuania
Old 05-03-2010 , 14:39   Re: Client_print
Reply With Quote #5

Now i see why it writes a LooT of messages, how can i change this commands:
Server assigns player class (i think i should change PreThink too):

PHP Code:
public fw_Player_PreThinkid 
{
    if(
is_user_connectedid ) && is_user_aliveid ) && ( get_user_teamid ) == ))
    {
    
g_Player_Class[id] = 1
    
}
    
    return 
PLUGIN_CONTINUE

When class is assigned it writes message:
PHP Code:
{
    if(
g_Player_Class[id] == 1)
    {    
    
client_print(idprint_chat"[AMXX] Your class is:...")    
    }
    return 
PLUGIN_HANDLED

And i have one other question: How can server assign player class randomly when he connects? (g_Player_Class[id] = 1 / 2 / 3 /4 /5)

Last edited by eNz0; 05-03-2010 at 14:47.
eNz0 is offline
 



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 03:38.


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