Raised This Month: $ Target: $400
 0% 

[DONE]How to check if map has bombsite?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unkolix
Veteran Member
Join Date: Sep 2012
Old 02-08-2013 , 11:44   Re: How to check if map has bombsite?
Reply With Quote #1

Still the same probelm.

EDIT: I removed the fm_ and it compiled.

I mean, how do I now check if that is true?
Something like:
PHP Code:
if(has_bombsite

Last edited by Unkolix; 02-08-2013 at 11:47.
Unkolix is offline
P1raten
Senior Member
Join Date: Feb 2010
Old 02-08-2013 , 11:51   Re: How to check if map has bombsite?
Reply With Quote #2

Quote:
Originally Posted by Unkolix View Post
Still the same probelm.

EDIT: I removed the fm_ and it compiled.

I mean, how do I now check if that is true?
Something like:
PHP Code:
if(has_bombsite
I'm guessing you forgot to include engine.
__________________
No salvation. Only madness.
P1raten is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-08-2013 , 14:01   Re: [DONE]How to check if map has bombsite?
Reply With Quote #3

PHP Code:
new bool:g_bHasBombSite

public plugin_init()
{
    
g_bHasBombSite = !!( find_ent_by_class(-1"func_bomb_target") || find_ent_by_class(-1"info_bomb_target") )


Then you can use where you want in plugin (excepted in plugin_precache and plugin_natives) :

PHP Code:
if( g_bHasBombSite 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 11:11.


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