SANDBOX/PlayerSpawnNPC
From Garry's Mod
SANDBOX:PlayerSpawnNPC( )
Contents |
Description
Called to ask if player allowed to spawn a particular NPC or not.
Arguments
Player ply
The player that wants to spawn that NPC
Arguments
string npc_type
The npc type that player is trying to spawn
Arguments
string weapon
The weapon of that NPC
Returns
Return false to disallow spawning that NPC