View Single Post
EngHell
Member
Join Date: Jul 2013
Location: Guatemala
Old 01-30-2015 , 11:42   Re: how to restrict deagle on awp maps
Reply With Quote #14

Quote:
Originally Posted by Black-Rabbit View Post
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;

Imma update my plugin then
EngHell is offline