View Single Post
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-28-2015 , 17:08   Re: how to restrict deagle on awp maps
Reply With Quote #12

Quote:
Originally Posted by h3bus View Post
The complete way would be hooking Spawn event on OnEntityCreated then killing the weapon there.
Totally agree with you sir!

Simple and efficient way to do it ->

PHP Code:
public int OnEntityCreated(int entity, const char[] classname)
{
    if (
StrEqual(classname"weapon_deagle"))
        
SDKHook(entitySDKHook_SpawnOnDeagleSpawn);
}

public 
Action OnDeagleSpawn(int entity)
{
    return 
Plugin_Handled;

Mathias. is offline