thanks Emp, I didn't really take a look at that thread nor found it in the first page of a search.
Ok I tried to follow that, but the plugin still doesn't load.
PHP Code:
public plugin_natives()
{
register_library("bazookamod")
register_native("give_item_bazooka","give_item_bazooka")
}
The native registered in the bazooka adv plugin.
PHP Code:
public give_item_bazooka(id,ammo,sound) {
give_item(id, "weapon_c4") // give actual weapon
hasBazooka[id] = true // the plugin now knows they have a bazooka
Munni[id] = ammo //set ammunition
CanShoot[id] = true // they can shoot now
cs_set_user_plant(id,0,0) //they can't plant unless they switch to bomb
mode[id] = 1 //mode = normal
modetext[id] = 1
check_model(id) // refresh model
ammo_hud(id, 0)
ammo_hud(id, 1) // refresh hud info
if (sound) {
//audio notification
emit_sound(id, CHAN_ITEM, "items/gunpickup2.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
}
}
this is the function that give the bazooka.
PHP Code:
// Advanced Bazooka Include File //
#if defined _bazookamod_included
#endinput
#endif
#define _bazookamod_included
#pragma reqlib "dyn_test"
native give_item_bazooka(id,ammo,sound)
and this is the include file im using (It is included in the shop plugin)
@Bugsy, its a function within Bazooka Advanced.
__________________
I can't believe I wasted 5 years of my life not knowing how to program correctly. Went too deep into advanced coding before even learning the basics correctly. :c