Raised This Month: $ Target: $400
 0% 

Wich method is better?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-12-2011 , 11:59   Re: Wich method is better?
Reply With Quote #5

There is not really one better.

You can do things differently. Don't know what you plan to do exactly, but you can use a var which contains the "status" of the player.

PHP Code:
enum UserStatus
{
    
UserNormal,
    
UserRetarded,
    
UserIdiot
};

UserStatusDescriptionUserStatus ][] =
{
    
"You are normal !!!",
    
"You are retarded !!!",
    
"You are an idiot !!!"
};

new 
UserStatus:Status33 ];

public 
checkid )
{
    new 
UserStatus:currentStatus Statusid ];
    
    if( 
currentStatus != UserNormal )
    {
        
client_printidprint_chatUserStatusDescriptioncurrentStatus ] )
    }

You get the idea.
__________________
Arkshine 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 20:10.


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