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

Hey Need help with my plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-23-2010 , 11:46   Re: Hey Need help with my plugin.
Reply With Quote #11

PHP Code:
//The code that is fired should a client type !counter or /counter in chat, or sm_counter in console
public Action:Command_Counter(clientargs)
{
    
//Since their status is already saved, use it to determine the change
    
if(g_canDisplay[client])
    {
        
//Display is on, they want off
        
SetClientCookie(clientg_displayStatus"0");
        
PrintToChat(client"Yo what up with you, you don't like my counter? Fine then, I'll hide it from you");
    }
    else
    {
        
//Display is off, turn on
        
SetClientCookie(clientg_displayStatus"1");
        
PrintToChat(client"You love my counter, don't you? Admit it! I shall show it to you then!");
    }
    
    
g_canDisplay[client] = !g_canDisplay[client];
    return 
Plugin_Handled;

__________________

Last edited by thetwistedpanda; 08-23-2010 at 11:49.
thetwistedpanda is offline
Reply



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


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