Raised This Month: $ Target: $400
 0% 

need help with seeting CVARS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 11-10-2005 , 08:14  
Reply With Quote #1

Nope. When you see ( const String[] , ....) it just means you put a string in there.
Code:
 #include <amxmodx>   #include <amxmisc>   #include <fun>   public plugin_init()   {       register_srvcmd("amx_surf","cmd_surf",ADMIN_LEVEL_B,"<Surf Enabled>")       register_srvcmd("surf_config","cmd_surf",ADMIN_LEVEL_B,"<Surf Enabled>")   }   public cmd_surf(id, level, cid)   {       if ( !cmd_access( id, level, cid, 2 ) )           return PLUGIN_HANDLED;                 set_cvar_num ( "sv_accelerate",100 )     set_cvar_num ( "sv_airaccelerate",800 )     set_cvar_num ( "sv_gravity",800 ) }   {       client_print(0, print_chat, "[AMXX]Surf Mode Enabled");       return PLUGIN_HANDLED;   }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
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 23:41.


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