Raised This Month: $ Target: $400
 0% 

NVM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-02-2014 , 02:03   Re: callback for mvm
Reply With Quote #1

Why don't you just set a global boolean onmapstart to decide if it's mvm, and then use an if statement in ongivenameditem, like any other sane person?
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-02-2014 , 07:11   Re: callback for mvm
Reply With Quote #2

Quote:
Originally Posted by friagram View Post
Why don't you just set a global boolean onmapstart to decide if it's mvm, and then use an if statement in ongivenameditem, like any other sane person?
How would I detect if the map is mvm.
WildCard65 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-02-2014 , 09:58   Re: callback for mvm
Reply With Quote #3

Quote:
Originally Posted by WildCard65 View Post
How would I detect if the map is mvm.
PHP Code:
if (GameRules_GetProp("m_bPlayingMannVsMachine"))
{

__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

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 21:27.


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