View Single Post
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 03-15-2019 , 10:36   Re: Disable drop guns every round
Reply With Quote #2

PHP Code:

#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdkhooks>
#include <sdktools>

public void OnEntityCreated(int entity, const char[] classname)
{    
    if (
StrEqual(classname"game_player_equip"))
    {
        
SDKHook(entitySDKHook_SpawnPostOnGamePlayerEquipSpawn);
    }
}

public 
void OnGamePlayerEquipSpawn(int entity)
{
    if (
GetEntProp(entityProp_Data"m_spawnflags") & 1)
    {
        return;
    }

    
SetEntProp(entityProp_Data"m_spawnflags"4);

https://developer.valvesoftware.com/...e_player_equip
__________________

Last edited by Ilusion9; 03-15-2019 at 10:38.
Ilusion9 is offline