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[ 0 ] = register_cvar( "cs_battleroyale_team_num", "6" ); // number of teams
g_iCvars[ 1 ] = register_cvar( "cs_battleroyale_player_per_team", "4" ); // number of players in one team
g_iMaxTeams = get_pcvar_num( g_iCvars[ 0 ] );
g_iPlayerPerTeam = get_pcvar_num( g_iCvars[ 1 ] );
}
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?
__________________