Raised This Month: $ Target: $400
 0% 

get bool from other plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-30-2011 , 22:51   get bool from other plugin
Reply With Quote #1

I m using 2 different armors * but 2 similar plugins/

I dont want that player could use BOTH armors.
so can I retreive bool from 2nd plugin? and if has=yes,has=yes { make the second bool - false
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-30-2011 , 22:57   Re: get bool from other plugin
Reply With Quote #2

Quote:
Originally Posted by avril-lavigne View Post
I m using 2 different armors * but 2 similar plugins/

I dont want that player could use BOTH armors.
so can I retreive bool from 2nd plugin? and if has=yes,has=yes { make the second bool - false
Use XVars.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2011 , 00:12   Re: get bool from other plugin
Reply With Quote #3

But, remember it won't work on arrays. I'm guessing both plugins use an array for storing player usage.
__________________
fysiks is offline
Nyuszy
Senior Member
Join Date: Apr 2009
Old 07-31-2011 , 05:47   Re: get bool from other plugin
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=159941
Nyuszy is offline
avril-lavigne
Banned
Join Date: Apr 2009
Old 07-31-2011 , 07:31   Re: get bool from other plugin
Reply With Quote #5

thanks Ill try xvars
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 07-31-2011 , 08:38   Re: get bool from other plugin
Reply With Quote #6

If you only store booleans you can use a single variable as a bitsum for all players and use that variable as a xvar.
__________________
Hunter-Digital is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-31-2011 , 09:27   Re: get bool from other plugin
Reply With Quote #7

Quote:
Originally Posted by Hunter-Digital View Post
If you only store booleans you can use a single variable as a bitsum for all players and use that variable as a xvar.
I agree with this idea, if you need two separate bool vars for all players just use 2 xvars.

http://forums.alliedmods.net/showthread.php?t=139916
http://forums.alliedmods.net/showthread.php?t=138880
__________________
Bugsy is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-31-2011 , 16:04   Re: get bool from other plugin
Reply With Quote #8

Quote:
Originally Posted by Hunter-Digital View Post
If you only store booleans you can use a single variable as a bitsum for all players and use that variable as a xvar.
Yep, that's a good idea. I think I would use this before using a native if no additional functionality was required. Good advice Hunter.
__________________
fysiks 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 03:26.


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