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_weapons( id);
give_item( id, "weapon_knife" );
give_item( id, "weapon_awp" );
cs_set_user_bpammo( id, CSW_AWP , 30 );
}
}