Is is possible when you pull out your building (and it shows the blue building blueprint), are you able to block that so it displays the red x (like when you build under something too low?) thus disabling being able to build?
I tried this, but it removes everything.
PHP Code:
public void OnEntityCreated(int entity, const char[] classname) {
if (StrEqual(classname, "obj_sentrygun")) { // Or desp or tele
SDKHook(entity, SDKHook_Spawn, Hook_OnEntitySpawn);
}
}
public Action Hook_OnEntitySpawn(int entity) {
return Plugin_Handled;
}
Also, hooking player_builtobject/carryobject and then return Plugin_Handled; doesn't work.