Raised This Month: $ Target: $400
 0% 

Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-08-2010 , 05:48   Re: Bank Vault mod - Multiple plugin trouble/Forwards - bot behaviour
Reply With Quote #1

Quote:
Originally Posted by Lulu the hero View Post
OMG! Not a single answer after a week? Damn...
People are not familiar with API type plugins. One second for me to read the question and I will answer.
Edit:
Well it is simple. You should make the main plugin (core plugin) handle the item buy! You register the price, etc. and make a native for the buy, that can be used by other plugins and even by the core. You register all the extensions in an array and make the original plugin check if a bot has enough money and after that do a buy. To notify other plugins about money change the best way is with cs_set_user_money.

Edit2:
I released a plugin a night before that does what I have said above.
http://forums.alliedmods.net/showthread.php?t=134691
Check the native/forwards parts and how they are used. Also the inc file should help.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.

Last edited by ot_207; 08-08-2010 at 05:58.
ot_207 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 00:12.


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