Raised This Month: $ Target: $400
 0% 

How to connect two plugins? Or Make subplugins.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 12-01-2017 , 00:19   Re: How to connect two plugins? Or Make subplugins.
Reply With Quote #10

Quote:
Originally Posted by aron9forever View Post
in plugin for m4 you create a native player_equip_special_m4 or whatever
in plugin for ak47 you make player_equip_special_ak47
plugins only do what is needed for weapons like setting skin, sounds animations etc, maybe also remove on death or round end

in 3rd plugin, the actual menu, shop, or whatever plugin, you create your menus, all other logic (money price or XP or whatever) and when you need to give the player the weapon you just call the native

all info needed to do this is in the tutorial you were given above; but you can look at how natives work in a real example, just search for any AMXX API (like cs_set_player_team)
So basically you are telling me to make the menu in the main plugin and handler in secondary plugin and how do you propose to link them?

EDIT:- I am a dumbass I got it i have to link them by the dynamic native
__________________
And I Am Back.

Last edited by TheSpaniard; 12-01-2017 at 00:20.
TheSpaniard is offline
 



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 20:46.


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