View Single Post
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-30-2017 , 14:21   Re: How to connect two plugins? Or Make subplugins.
Reply With Quote #8

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)
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 11-30-2017 at 14:22.
aron9forever is offline