View Single Post
WATCH_DOGS UNITED
BANNED
Join Date: Nov 2020
Old 09-04-2021 , 15:59   Re: Round Bonus Remover v1.3 ( Remove Bonus For Win/Lose Rounds)
Reply With Quote #22

Thanks for explaining more about caching cvars, it's probably correct in the Aim Realsm code.

We've already seen the Player Spawn VEN tutorial several times while trying to fix this issue.

But your code just removed the 1.0 delay and do not make any difference for the problem. In the way you code only our player is receiving AWP. Are you testing offline? Because we test with bots but we know that is not the reason stills not working as if we make a check is_user_bot has no difference.

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>


#define OFFSET_AWP_AMMO 377

public plugin_init()
{
    
register_plugin"Only AWP MOD" "0.1" "N/A" );
    
RegisterHam(Ham_Spawn"player""e_Player_Spawn"1);


public 
e_Player_Spawn(id)
{
    if(
is_user_alive(id))
    {
              
strip_user_weaponsid);
              
give_itemid"weapon_knife" );
              
give_itemid"weapon_awp" );
              
cs_set_user_bpammoidCSW_AWP 30 );
    }

WATCH_DOGS UNITED is offline