Raised This Month: $ Target: $400
 0% 

cmd check


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Korxu
Senior Member
Join Date: Sep 2010
Old 11-24-2011 , 13:12   Re: cmd check
Reply With Quote #4

PHP Code:
// Your function.
public snowon index )
{
     
query_client_cvar index"cl_weather""check_cvar_value" )
}

public 
check_cvar_value indexcvar [ ], value [ ] )
{
     
// If the value is different of '3', change it to '3'.
     
if ( value ] != '3' )
     {
          
client_cmd index"cl_weather 3" )
     }

     
// And show the message.
     
client_print indexprint_chat"You have turned on the snow." )


Last edited by Korxu; 11-24-2011 at 16:45.
Korxu 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 08:34.


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