AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Typical question (https://forums.alliedmods.net/showthread.php?t=126611)

Lure.d 05-11-2010 14:54

Typical question
 
Is it possible to attach .sma plugin-source files into another plugin?

For ex i got necro's blockmaker, and since its bit old, it doesn't have any natives or anything that i could use, so i want to attach it to my bm_natives plugin, so i could make ones.

wrecked_ 05-11-2010 15:35

Re: Typical question
 
You can either use an include file to declare the natives/forwards or you could just declare them in each plugin you use the natives in. As long as you properly handle them in the original plugin that you're appending, you should be able to just have
Code:
native bm_add_block native bm_other_thing forward bm_block_touch
in each plugin and be able to use them. Just handle them in the main BM plugin, to where you can use the source code from that plugin to help your native handling.

Lure.d 05-11-2010 15:42

Re: Typical question
 
so, lets see, in the .inc(include) file, i should include the blockmaker.sma and work it all in the .inc , is that what you wanted to tell?

wrecked_ 05-11-2010 15:46

Re: Typical question
 
Nope.

Dynamic / Fake Natives
Plugin API


All times are GMT -4. The time now is 03:40.

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