Raised This Month: $ Target: $400
 0% 

Block building blueprint?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Boonie
Member
Join Date: Aug 2015
Old 09-24-2015 , 10:27   Block building blueprint?
Reply With Quote #1

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(entitySDKHook_SpawnHook_OnEntitySpawn); 
    }


public 
Action Hook_OnEntitySpawn(int entity) {
    return 
Plugin_Handled;

Also, hooking player_builtobject/carryobject and then return Plugin_Handled; doesn't work.

Last edited by Boonie; 09-25-2015 at 00:49.
Boonie is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:01.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode