Raised This Month: $ Target: $400
 0% 

Weapon firing when MOTD appears | CVAR not updating |


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 07-10-2018 , 09:01   Weapon firing when MOTD appears | CVAR not updating |
Reply With Quote #1

Hi,

1. So when I kill someone a MOTD is supposed to appear to me, but after I kill him and the MOTD appears I'm unable to stop the gun firing, so it automatically keeps shooting until I'm out of ammo. Why does this loop happen?

2. My CVARs don't update when I first get in the game, I have to use 'restart' command so it can be fully updated. Basically this is my code that sets the CVARs.
PHP Code:
public plugin_init( )
{        
    
g_iCvars] = register_cvar"cs_battleroyale_team_num""6" ); // number of teams
    
g_iCvars] = register_cvar"cs_battleroyale_player_per_team""4" ); // number of players in one team
    
    
g_iMaxTeams get_pcvar_numg_iCvars] );
    
g_iPlayerPerTeam get_pcvar_numg_iCvars] );

while in my amxx.cfg it's
Quote:
cs_battleroyale_team_num 4
cs_battleroyale_player_per_team 2
When I join game for the first time I get 'Number of teams: 6 | Number of players per team: 4' same as inside the .sma , but when I restart it is same as amxx.cfg
Why is this?
__________________

Last edited by edon1337; 08-02-2018 at 14:00.
edon1337 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 12:37.


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