AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Help with Cvar (https://forums.alliedmods.net/showthread.php?t=190698)

Ax3l 07-21-2012 16:18

Help with Cvar
 
I have a War3FT server

And i did something for ... VIP

Code:

        new Name[ 32 ]
        get_user_Name( iPlayer , Name , 31 )
       
        if( equal( Name , "Ax3l" ) )
                set_cvar_string( "wc3_ult_cooldown" , "10.0" )

But it apply for everybody , not only for me , not only for player with name Ax3l
Why :-?

YamiKaitou 07-21-2012 16:22

Re: Help with Cvar
 
Because you are changing the cvar, which is global

Ax3l 07-21-2012 16:24

Re: Help with Cvar
 
And how can i change cvar only for me :-?

YamiKaitou 07-21-2012 16:40

Re: Help with Cvar
 
You would have to recode the plugin to ignore the cvar for you


All times are GMT -4. The time now is 22:11.

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