tenta apaga meu pc vai aiiii aoskaopska tu nem sabe mexe em nada fdp
Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema
Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema
....
Os nossos membros postaram um total de 38142 mensagens em 6680 assuntos
Temos 2796 usuários registrados
O último membro registrado é zmplugins - Henrique
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <fakemeta_util>
#include <zombieplague>
#include <hamsandwich>
#define PLUGIN "[ZP] Evento SupplyBox"
#define VERSION "1.0"
#define AUTHOR "Dexter"
new Menu_SupplyBox
new const item_class_name[] = "supplybox_evento"
new g_models[][] = {"models/Supply Box/supplybox_umbrela_pg.mdl"}
public plugin_precache()
{
for (new i = 0; i < sizeof g_models; i++)
precache_model(g_models[i])
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_Touch, "fwd_Touch")
register_event("HLTV", "round_start", "a", "1=0", "2=0")
register_clcmd("say /evento_normal", "display_items_menu", ADMIN_CFG, " - display item's menu")
register_clcmd("say /suplebox_play", "suplebox_play")
Menu_SupplyBox = menu_create("Supply Box Evento Normal","menu_item")
menu_additem(Menu_SupplyBox, "[Add SupplyBox]", "1")
menu_additem(Menu_SupplyBox, "[Deleta Todas as SupplyBox]", "2")
menu_additem(Menu_SupplyBox, "[Add Varias SupplyBox]", "3")
}
public plugin_cfg()
{
new map[32], config[32]
get_mapname(map, 31)
get_configsdir(config, 31)
}
public display_items_menu(id, level, cid)
{
if (cmd_access(id, level, cid, 0))
menu_display(id, Menu_SupplyBox, 0)
return PLUGIN_HANDLED
}
public menu_item(id, menu, item)
{
if( item < 0 )
return PLUGIN_CONTINUE
new cmd[3]
new maccess, callback
menu_item_getinfo(menu, item, maccess, cmd,2,_,_, callback)
new iChoice = str_to_num(cmd)
switch(iChoice)
{
case 1:
{
new origin[3]
get_user_origin(id, origin, 3)
add_supplybox(origin)
}
case 2:
deleta_all_supplybox()
case 3:
round_start()
}
menu_display(id, Menu_SupplyBox, 0)
return PLUGIN_CONTINUE
}
public suplebox_play(id)
{
new origin[3]
get_user_origin(id, origin, 3)
add_supplybox(origin)
}
public add_supplybox(origin[3])
{
set_hudmessage(255, 0, 0, -1.0, 0.17, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "[SupplyBox Evento] Foi Soltado 1 SupplyBox Acheia-la BY:DEXTER")
new ent = fm_create_entity("info_target")
set_pev(ent, pev_classname, item_class_name)
engfunc(EngFunc_SetModel,ent, g_models[random_num(0, sizeof g_models - 1)])
set_pev(ent,pev_mins,Float:{-10.0,-10.0,0.0})
set_pev(ent,pev_maxs,Float:{10.0,10.0,25.0})
set_pev(ent,pev_size,Float:{-10.0,-10.0,0.0,10.0,10.0,25.0})
engfunc(EngFunc_SetSize,ent,Float:{-10.0,-10.0,0.0},Float:{10.0,10.0,25.0})
set_pev(ent,pev_solid,SOLID_BBOX)
set_pev(ent,pev_movetype,MOVETYPE_FLY)
new Float:fOrigin[3]
IVecFVec(origin, fOrigin)
set_pev(ent, pev_origin, fOrigin)
set_pev(ent,pev_renderfx,kRenderFxGlowShell)
switch(random_num(1,4))
{
case 1: set_pev(ent,pev_rendercolor,Float:{0.0,0.0,255.0})
case 2: set_pev(ent,pev_rendercolor,Float:{0.0,255.0,0.0})
case 3: set_pev(ent,pev_rendercolor,Float:{255.0,0.0,0.0})
case 4: set_pev(ent,pev_rendercolor,Float:{255.0,255.0,255.0})
}
}
public deleta_all_supplybox()
{
set_hudmessage(255, 0, 0, -1.0, 0.17, 1, 0.0, 5.0, 1.0, 1.0, -1)
show_hudmessage(0, "[SupplyBox Evento] Todas As SupplyBox No Mapa Foi Deletada BY:DEXTER")
new ent = FM_NULLENT
static string_class[] = "classname"
while ((ent = engfunc(EngFunc_FindEntityByString, ent, string_class, item_class_name)))
set_pev(ent, pev_flags, FL_KILLME)
}
public fwd_Touch(toucher, touched)
{
if (!is_user_alive(toucher) || !pev_valid(touched))
return FMRES_IGNORED
new classname[32]
pev(touched, pev_classname, classname, 31)
if (!equal(classname, item_class_name))
return FMRES_IGNORED
give_item(toucher)
set_pev(touched, pev_effects, EF_NODRAW)
set_pev(touched, pev_solid, SOLID_NOT)
return FMRES_IGNORED
}
public removeEntity(ent)
{
if (pev_valid(ent))
engfunc(EngFunc_RemoveEntity, ent)
}
public give_item(id)
{
new ap_quantity
ap_quantity = random_num(150, 5)
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) + ap_quantity)
client_printcolor(0, "!g[SupplyBox Evento]!t Alguem Achor !g%d!t Ammo pack no evento da supplybox", ap_quantity)
}
public round_start()
{
new ent = FM_NULLENT
static string_class[] = "classname"
while ((ent = engfunc(EngFunc_FindEntityByString, ent, string_class, item_class_name)))
{
set_pev(ent, pev_effects, 0)
set_pev(ent, pev_solid, SOLID_BBOX)
}
}
stock client_printcolor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4") // Chat Verde
replace_all(msg, 190, "!y", "^1") // Chat Normal
replace_all(msg, 190, "!t", "^3") // Chat Do Time Tr=Vermelho Ct=Azul Spec=Branco
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
new g_zombie[33] // is zombie new g_nemesis[33] // is nemesis new g_survivor[33] // is survivor new g_firstzombie[33] // is first zombie new g_lastzombie[33] // is last zombie new g_lasthuman[33] // is last human new g_frozen[33] // is frozen (can't move) new g_nodamage[33] // has spawn protection/zombie madness new g_respawn_as_zombie[33] // should respawn as zombie new g_nvision[33] // has night vision new g_nvisionenabled[33] // has night vision turned on new g_zombieclass[33] // zombie class new g_zombieclassnext[33] // zombie class for next infection new g_flashlight[33] // has custom flashlight turned on new g_flashbattery[33] = { 100, ... } // custom flashlight battery new g_canbuy[33] // is allowed to buy a new weapon through the menu new g_ammopacks[33] // ammo pack count new g_damagedealt[33] // damage dealt to zombies (used to calculate ammo packs reward) new Float:g_lastleaptime[33] // time leap was last used new Float:g_lastflashtime[33] // time flashlight was last toggled new g_playermodel[33][32] // current model's short name [player][model] new g_menu_data[33][5] // data for some menu handlers new g_ent_playermodel[33] // player model entity new g_ent_weaponmodel[33] // weapon model entity new g_burning_duration[33] // burning task duration new g_sniper[33] // is sniper new g_assassin[33] // is assassin new g_berserker[33] // is berserker new cvar_antidote_minzms new g_human_class[33]