Quote:
Originally Posted by Lulu the hero
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.
__________________