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

Change CVar without rcon problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 12-26-2009 , 02:14   Change CVar without rcon problem
Reply With Quote #1

Hello,

I've created a plugin to change max HP that players spawn to a CVar (sm_maxHP).

However, I cannot change directly that cvar through my in-game console without using "sm_rcon [...]". If I try to change it directly without rcon I've the following error "Unknown command: sm_maxhp".

I'd like to be able to change that CVar doing simply ("sm_maxHP #") in the in-game console.

How could I do this ? I've all the admin flags possible.

My code is in the attachment.

Any help would be appreciated,

Thx,

RedSword
Attached Files
File Type: sp Get Plugin or Get Source (maxHP.sp - 477 views - 802 Bytes)
RedSword is offline
Bigbuck
Senior Member
Join Date: Jul 2009
Old 12-26-2009 , 02:36   Re: Change CVar without rcon problem
Reply With Quote #2

sm_cvar sm_maxHP #
Bigbuck 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 19:54.


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