Raised This Month: $32 Target: $400
 8% 

[REQ]ZP50 Supply Box


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cr0w
Senior Member
Join Date: Mar 2014
Location: middle east
Old 09-24-2014 , 05:55   [REQ]ZP50 Supply Box
Reply With Quote #1

hey guys i want supply box for zp5.0.8a
__________________
the city is no fun
there is no sun
and its so dark
cr0w is offline
Send a message via Yahoo to cr0w Send a message via Skype™ to cr0w
Linkin Rida
Junior Member
Join Date: Sep 2014
Old 09-24-2014 , 15:25   Re: [REQ]ZP50 Supply Box
Reply With Quote #2

that's It Work In zp 5.0.......
Attached Files
File Type: zip zp_death_supply_box.zip (201.4 KB, 217 views)

Last edited by YamiKaitou; 09-30-2014 at 10:12.
Linkin Rida is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-24-2014 , 16:56   Re: [REQ]ZP50 Supply Box
Reply With Quote #3

Use the supplybox of dias..
wicho is offline
cr0w
Senior Member
Join Date: Mar 2014
Location: middle east
Old 09-25-2014 , 08:35   Re: [REQ]ZP50 Supply Box
Reply With Quote #4

Quote:
Originally Posted by wicho View Post
Use the supplybox of dias..
can you give me a link ?

Quote:
Originally Posted by Linkin Rida View Post
that's It Work In zp 5.0.......
that's need to translate .. can you make it English ?
__________________
the city is no fun
there is no sun
and its so dark

Last edited by cr0w; 09-25-2014 at 08:36.
cr0w is offline
Send a message via Yahoo to cr0w Send a message via Skype™ to cr0w
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-30-2014 , 10:12   Re: [REQ]ZP50 Supply Box
Reply With Quote #5

Quote:
Originally Posted by Linkin Rida View Post
that's It Work In zp 5.0.......
Do not upload AMXX files.... Files removed from the archive
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 09-30-2014 , 22:36   Re: [REQ]ZP50 Supply Box
Reply With Quote #6

Try:

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fun>
#include <zp50_core>
#include <zp50_items>

#define PLUGIN "[ZP] Drop SupplyBox"
#define VERSION "1.0"
#define AUTHOR "Biel-oGrande"

#define Prefix "AddonsZM"

new g_sprite
new g_ItemZombieMadnessID

new g_model[] = "models/zombie_plague/w_supplybox.mdl"
new g_sound[] = "zombie_plague/supplybox_pickup.wav"

public plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_forward(FM_Touch"fwdTouch")
    
    
register_logevent("round_start"2"1=Round_Start")
    
    
register_event("DeathMsg""player_death""a")
}

public 
plugin_precache()  {
    
    
precache_model(g_model)
    
precache_sound(g_sound)
    
g_sprite precache_model("sprites/icon_supplybox.spr")
}

plugin_cfg()
{
    
g_ItemZombieMadnessID zp_items_get_id("Zombie Madness")
    
}

public 
round_start() {
    
    new 
ent = -1
    
while ((ent engfunc(EngFunc_FindEntityByStringent"classname""supplybox")) != 0) {
        
        
engfunc(EngFunc_RemoveEntityent)
        
remove_task(ent)
    }
}

public 
player_death() {
    
    new 
victim read_data(2)
    
    if(
random_num(01) == 0)  {
        
        
drop_supplybox(victim)
    }
    return 
PLUGIN_CONTINUE
}

public 
drop_supplybox(id) {
    
    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
    
    new 
Float:origin[3]
    
pev(idpev_originorigin)
    
    
set_pev(entpev_originorigin)
    
set_pev(entpev_classname"supplybox")
    
engfunc(EngFunc_SetModelentg_model)
    
set_pev(entpev_solidSOLID_TRIGGER)
    
set_pev(entpev_movetypeMOVETYPE_NOCLIP)
    
engfunc(EngFunc_DropToFloorent)
    
    
set_pev(entpev_renderfxkRenderFxGlowShell)
    
set_pev(entpev_rendercolorFloat:{0.0,0.0,200.0})
    
    
set_pev(entpev_avelocity,Float:{0.0,50.0,0.0})
    
    
set_task(0.1"icon_light"ent__"b")
}

public 
icon_light(ent) {
    
    static 
Float:origin[3]
    
pev(entpev_originorigin)
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0)
    
write_byte(TE_SPRITE)
    
engfunc(EngFunc_WriteCoordorigin[0])
    
engfunc(EngFunc_WriteCoordorigin[1])
    
engfunc(EngFunc_WriteCoordorigin[2] + 40.0)
    
write_short(g_sprite)
    
write_byte(2)
    
write_byte(100)
    
message_end()
    
    
engfunc(EngFunc_MessageBeginMSG_PASSVC_TEMPENTITYorigin0)
    
write_byte(TE_DLIGHT)
    
engfunc(EngFunc_WriteCoordorigin[0])
    
engfunc(EngFunc_WriteCoordorigin[1])
    
engfunc(EngFunc_WriteCoordorigin[2])
    
write_byte(5)
    
write_byte(100)
    
write_byte(100)
    
write_byte(100)
    
write_byte(2)
    
write_byte(0)
    
message_end()
}

public 
fwdTouch(entid) { 
    
    if(!
pev_valid(ent) || !is_user_alive(id)) return FMRES_IGNORED
    
    
new classname[32]
    
pev(entpev_classnameclassnamecharsmax(classname))
    
    if(
equali(classname"supplybox")) {
        
        
emit_sound(idCHAN_AUTOg_sound1.0ATTN_NORM0PITCH_NORM)
        
engfunc(EngFunc_RemoveEntityent)
        
remove_task(ent)
        
        if(
zp_core_is_zombie(id))
            
zombie_item(id)
        else
            
human_item(id)
    }
    return 
FMRES_IGNORED
}

public 
human_item(id) {
    
    new 
szName[32]
    
get_user_name(idszName31)
    
    switch (
random_num(010)) {
        
        case 
0..3: {
            
            
client_print_color(0"!g[%s] !y%s !tYou Took the SupplyBox and not won anything.",PrefixszName)
        }
        case 
4..6: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !y2 !gAmmoPacks.",PrefixszName)
            
zp_ammopacks_set(idzp_ammopacks_get(id) + 2)
        }
        case 
78: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !ynightvision.",PrefixszName)
            
cs_set_user_nvg(id1)
                    
client_cmd(id"nightvision")
        }
        case 
9: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !y25 !gof health.",PrefixszName)
            
set_user_health(idget_user_health(id) + 25)
        }
        case 
10: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !y10 !garmor.",PrefixszName)
            
set_user_armor(idget_user_armor(id) + 10)
        }
    }
}

public 
zombie_item(id) {
    
    new 
szName[32]
    
get_user_name(idszName31)    
    
    switch (
random_num(09)) {
        
        case 
0..3: {
            
            
client_print_color(0"!g[%s] !y%s !tYou Took the SupplyBox and not won anything.",PrefixszName)
        }
        case 
4..6: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !y2 !gAmmoPacks.",PrefixszName)
            
zp_ammopacks_set(idzp_ammopacks_get(id) + 2)
        }
        case 
78: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !y300 !gof health.",PrefixszName)
            
set_user_health(idget_user_health(id) + 300)
        }
        case 
9: {
            
            
client_print_color(0"!g[%s] !y%s !tYou took the SupplyBox and won !yzombie madness.",PrefixszName)
                        
zp_items_force_buy(idg_ItemZombieMadnessIDtrue)
        }
    }
}

stock client_print_color(const id, const input[], any:...) {
    
    new 
count 1players[32]
    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!t""^3")
    
replace_all(msg190"!team2""^0")
    
    if(
id)
        
players[0] = id;
    else
        
get_players(playerscount"ch")
    
    for (new 
0counti++) {
        
        if(
is_user_connected(players[i])) {
            
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"), _players[i])
            
write_byte(players[i]);
            
write_string(msg);
            
message_end();
        }
    }


Last edited by wicho; 09-30-2014 at 22:37.
wicho is offline
Reply



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 17:18.


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