i tested the plugin, and it doesn't work i drop a weapon and nothing show no boxgift...
EDIT: if i drop 3-4 weapons in one place server is crashed before crashed i see one giftbox
Bug Fixed, for some reason I'm not able to remove the weapon that touches the on-ground weapon, it may be some kind of bug, it acts like I'm removing the player. Test it now.
i tested the plugin, and it doesn't work i drop a weapon and nothing show no boxgift...
EDIT: if i drop 3-4 weapons in one place server is crashed before crashed i see one giftbox
Bug Fixed, for some reason I'm not able to remove the weapon that touches the on-ground weapon, it may be some kind of bug, it acts like I'm removing the player. Test it now.
thank, now the server not crash.
but i drop 4-5 weapons only one giftbox, it fine?
maybe my mistake? its random giftbox per weapon throw?
EDIT: now i pick the giftbox see in image, and drop more 2 weapon. so the awp and famas on the floor changed to giftbox they was on floor before droppi
Snitch recheck the new update 1.2 by DoNii it works perfectly drop as many guns and get that many boxes DoNii sensai OUTSTANDING work That's why you are my mentor [/u]
Sensai for the purpose of optimisation i would like to point out 2 things:
1)Seems like if i drop a weapon on a smoke grenade/hg which falls on the ground when player dies that also creates a gift box
2) Sensai if possible add a greater chance to get empty box 3:1 chance to get box with item amd another 1 chance to lose hp and armor that you have already added.
1) Test this and let me know if it's fixed. #include < amxmodx > #include < cstrike > #include < hamsandwich > #include < engine > #include < fakemeta > #include < fun >
#define VERSION "1.2"
new const BOX_CLASSNAME[ ] = "func_bonusbox" ;
new const BOX_MODEL[ ] = "models/bonusbox.mdl" ;
new const BOX_SPRITE[ ] = "sprites/bonusbox_sprite.spr" ;
Zombie must not pick up smoke and flash bang from the gift box... they get human hands and a flash bang or smoke grenade which is not good
This plugin is for normal CS not ZP. I made a ZP version if someone like you is interested. #include < amxmodx > #include < cstrike > #include < hamsandwich > #include < engine > #include < fakemeta > #include < fun > #include < zombieplague >
#define VERSION "1.2"
new const BOX_CLASSNAME[ ] = "func_bonusbox" ;
new const BOX_MODEL[ ] = "models/bonusbox.mdl" ;
new const BOX_SPRITE[ ] = "sprites/bonusbox_sprite.spr" ;
When user becomes zombie if he has weapon in hand it creates a giftbox on the zombie which makes the zombies stuck inside the giftbox.
That's not a bug, the game itself strips the weapons on the exact origin of player, furthermore, how can you get stuck in it if you claim the Giftbox instantly?
Also please add that the player can get any random extra item... any randomly
That requires a new ZP native (zp_get_max_extra_item_id) here's the tutorial how to make it.
1) Go to public plugin_natives()
Then go to the last line of the function and add this register_native("zp_get_max_extra_item_id", "native_get_max_extra_item_id", 1)
2) Go to the lines of code where the native functions are created, for example public native_get_extra_item_id(const name[])
3) Add a new function public native_get_max_extra_item_id() { return g_extraitem_i ; }
4) Go to your zombieplague.inc and in a new line add this /** * Returns Max Extra Item ID number. * * @return Number of Max Extra Item ID. */ native zp_get_max_extra_item_id()
After that re-compile your zombieplague.sma and use this code. #include < amxmodx > #include < cstrike > #include < hamsandwich > #include < engine > #include < fakemeta > #include < fun > #include < zombieplague >
#define VERSION "1.2"
new const BOX_CLASSNAME[ ] = "func_bonusbox" ;
new const BOX_MODEL[ ] = "models/bonusbox.mdl" ;
new const BOX_SPRITE[ ] = "sprites/bonusbox_sprite.spr" ;
new iMaxExtraItemCount = zp_get_max_extra_item_id( ) ;
if( iMaxExtraItemCount <= 0 ) {
client_print( iToucher, print_chat, "[GiftBox] No Extra Items Found" ) ; return HAM_IGNORED ; }
new iRandomExtraItem = random_num( 1, iMaxExtraItemCount ) ;
zp_force_buy_extra_item( iToucher, iRandomExtraItem, 1 ) ; client_print( iToucher, print_chat, "[GiftBox] You Just Won A Random Extra Item [Item ID: %d]", iRandomExtraItem ) ; } }
Zombie must not pick up smoke and flash bang from the gift box... they get human hands and a flash bang or smoke grenade which is not good
This plugin is for normal CS not ZP. I made a ZP version if someone like you is interested. #include < amxmodx > #include < cstrike > #include < hamsandwich > #include < engine > #include < fakemeta > #include < fun > #include < zombieplague >
#define VERSION "1.2"
new const BOX_CLASSNAME[ ] = "func_bonusbox" ;
new const BOX_MODEL[ ] = "models/bonusbox.mdl" ;
new const BOX_SPRITE[ ] = "sprites/bonusbox_sprite.spr" ;
First error fixed. Test this and let me know if second error is fixed. Thanks for the feedback. #include < amxmodx > #include < cstrike > #include < hamsandwich > #include < engine > #include < fakemeta > #include < fun > #include < zombieplague >
#define VERSION "1.2"
new const BOX_CLASSNAME[ ] = "func_bonusbox" ;
new const BOX_MODEL[ ] = "models/bonusbox.mdl" ;
new const BOX_SPRITE[ ] = "sprites/bonusbox_sprite.spr" ;
client_print( iToucher, print_chat, "[GiftBox] Bad Luck, You Won Nothing ..!" ) ;
set_hudmessage( 0, 255, 0, 0.40, 0.35, 0, 6.0, 3.0 ) ; show_hudmessage( iToucher, "[GiftBox] Bad Luck, You Won Nothing ..!" ) ; }
case 8 : {
new iMaxExtraItemCount = zp_get_max_extra_item_id( ) ;
if( iMaxExtraItemCount <= 0 ) {
client_print( iToucher, print_chat, "[GiftBox] No Extra Item Found" ) ; return HAM_IGNORED ; }
new iRandomExtraItem = random_num( 1, iMaxExtraItemCount ) ;
zp_force_buy_extra_item( iToucher, iRandomExtraItem, 1 ) ; client_print( iToucher, print_chat, "[GiftBox] You Just Won A Random Extra Item [Item ID: %d]", iRandomExtraItem ) ; } }
First error fixed. Test this and let me know if second error is fixed. Thanks for the feedback.
Sensai the first error is fixed but the second error its kind of fixed because u made the weapon drop a little ahead of the player but sometimes when players are in groups they still get stuck ... can u make it like pass through for zombies
First error fixed. Test this and let me know if second error is fixed. Thanks for the feedback.
Sensai the first error is fixed but the second error its kind of fixed because u made the weapon drop a little ahead of the player but sometimes when players are in groups they still get stuck ... can u make it like pass through for zombies