MultiJump (TE_BEAMCYLINDER)

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
418
Реакции
-7
Предупреждения
8
Ошибка
У Создателя срабатывает спрайт который у Випа в цветах RGB (0, 0, 255), а у Создателя назначен цвет RGB (255, 0, 0) но срабатывает синий..
ОС
Windows
Amx Mod X
1.9.0
Билд
Protocol version 48
Exe version 1.1.2.6/2.0.0.0 (cstrike)
Exe build: 16:05:41 Jun 15 2009 (4554)
ReGamedll
Нету)
Версия Metamod
Metamod v1.21.1-am  2013-09-26 (5:13)
by Will Day <[email protected]>
http://www.metamod.org/
compiled: Sep 26 2013, 22:35:52 (msc optimized)
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm.dll v1.9.0-d ini Start ANY
[ 2] POD-Bot mm RUN - podbot_mm.dll v3.0B20b ini Chlvl ANY
[ 3] Print Center Fi RUN - printcenterfix_m v2.0.1 ini ANY ANY
[ 4] Ultimate Unprec RUN - ultimate_unpreca v0.3 Alp ini ANY ANY
[ 5] CStrike RUN - cstrike_amxx.dll v1.9.0.5 pl1 ANY ANY
[ 6] Fun RUN - fun_amxx.dll v1.9.0-d pl1 ANY ANY
[ 7] FakeMeta RUN - fakemeta_amxx.dl v1.9.0-d pl1 ANY ANY
[ 8] Engine RUN - engine_amxx.dll v1.9.0-d pl1 ANY ANY
[ 9] Ham Sandwich RUN - hamsandwich_amxx v1.9.0-d pl1 ANY ANY
9 plugins, 9 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.9.0-dev+ AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0-dev+ AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0-dev+ AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0-dev+ AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0-dev+ AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0-dev+ AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0-dev+ AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0-dev+ AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0-dev+ AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0-dev+ AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0-dev+ AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0-dev+ AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0-dev+ AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0-dev+ AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0-dev+ AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0-dev+ AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0-dev+ AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0-dev+ AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0-dev+ AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0-dev+ AMXX Dev Team statscfg.amxx running
[ 21] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 22] menu privilegij enu privil nu privilegij menu_privilegij running
[ 23] moi kobinet oi kobinet i kobinet my_kabinet.amxx running
[ 24] Camera Changer 1.3 Bl0ck Camera_Changer. running
[ 25] Admin Prefixes 3.0 m0skVi4a ;] AdminPrefixes.a running
[ 26] [AMXX] Admin Gift 02.01.2018 Number One AdminRight.amxx running
[ 27] NadeModes 11.2 Nomexous & OT nademodes.amxx running
[ 28] KH_HEALTH 1.0 Kulogram KH_Health.amxx running
[ 29] [ZP] Addon: Menu Selec 1.0 Universe & BuB9n creator_give_we running
[ 30] Extra Precacher 1.0 Alka extra_precacher running
[ 31] ZM VIP 1.9.1 BETA aaarnas zm_vip.amxx running
[ 32] [ZP] Core/Engine 5.0.8 ZP Dev Team zp50_core.amxx running
[ 33] [AMXX] External Settin 0.1 WiLS amx_settings_ap running
[ 34] [CS] Player Models API 1.2 WiLS cs_player_model running
[ 35] [CS] Teams API 1.2 WiLS cs_teams_api.am running
[ 36] [CS] MaxSpeed API 1.0 WiLS cs_maxspeed_api running
[ 37] [CS] Weapon Models API 1.1 WiLS cs_weap_models_ running
[ 38] [CS] Weapons Restrict 0.4 WiLS cs_weap_restric running
[ 39] [CS] Ham Hooks for Bot 1.0 WiLS cs_ham_bots_api running
[ 40] [ZP] Class: Zombie 5.0.8 ZP Dev Team zp50_class_zomb running
[ 41] [ZP] Class: Human 5.0.8 ZP Dev Team zp50_class_huma running
[ 42] [ZP] Class: Nemesis 5.0.8 ZP Dev Team zp50_class_neme running
[ 43] [ZP] Class: Survivor 5.0.8 ZP Dev Team zp50_class_surv running
[ 44] [ZP] Class: Zombie: Cl 5.0.8 ZP Dev Team zp50_class_zomb running
[ 45] [CSO:Hunter Zombie] 1.2 HoRRoR/tERoR edi zp50_class_chin running
[ 46] NST Zombie Class Heal 1.0 NST zp50_class_sham running
[ 47] [ZP] Wallclimb 1.0 WallClimb by Pyt zp50_class_skal running
[ 48] [ZP] Zombie Class: Dra 0.1 =), LARS-BLOODLI zp50_class_reve running
[ 49] [ZP] Zombie Class: Rev 1.0 =), LARS-BLOODLI zp50_class_reve running
[ 50] [ZP] Zombie Class: Poi 0.1 =), LARS-BLOODLI zp50_class_reve running
[ 51] [ZP] Class: Human: Cla 5.0.8 ZP Dev Team zp50_class_huma running
[ 52] [ZP] Human Armor 5.0.8 ZP Dev Team zp50_human_armo running
[ 53] [ZP] Game Modes Manage 5.0.8 ZP Dev Team zp50_gamemodes. running
[ 54] [ZP] Game Mode: Infect 5.0.8 ZP Dev Team zp50_gamemode_i paused
[ 55] [ZP] Game Mode: Multip 5.0.8 ZP Dev Team zp50_gamemode_m paused
[ 56] [ZP] Game Mode: Swarm 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 57] [ZP] Game Mode: Nemesi 5.0.8 ZP Dev Team zp50_gamemode_n paused
[ 58] [ZP] Game Mode: Surviv 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 59] [ZP] Game Mode: Plague 5.0.8 ZP Dev Team zp50_gamemode_p paused
[ 60] [ZP] Game Mode: Armage 5.0.8 ZP Dev Team zp50_gamemode_a paused
[ 61] [ZP] Items Manager 5.0.8 ZP Dev Team zp50_items.amxx running
[ 62] [ZP] Items Manager: Am 5.0.8 ZP Dev Team zp50_items_ammo running
[ 63] [ZP] Item: Weapons 5.0.8 ZP Dev Team zp50_item_weapo running
[ 64] [ZP] Item: Nightvision 5.0.8 ZP Dev Team zp50_item_night running
[ 65] [ZP] Item: Antidote 5.0.8 ZP Dev Team zp50_item_antid running
[ 66] [ZP] Item: Zombie Madn 5.0.8 ZP Dev Team zp50_item_zombi running
[ 67] [ZP] Item: Infection B 5.0.8 ZP Dev Team zp50_item_infec running
[ 68] [ZP] Extra Item: Jump 1.0 Opo4uMapy zp_jump_bomb.am running
[ 69] [ZP] Admin Commands 5.0.8 ZP Dev Team zp50_admin_comm running
[ 70] [ZP] Admin Menus 5.0.8 ZP Dev Team zp50_admin_menu running
[ 71] [ZP] Admin Models 5.0.8 ZP Dev Team zp50_admin_mode running
[ 72] [ZP] Custom Buy Menus 5.0.8 ZP Dev Team zp50_buy_menus. running
[ 73] [ZP] Buyzones 5.0.8 ZP Dev Team zp50_buy_zones. running
[ 74] [ZP] Rewards: Ammo Pac 5.0.8 ZP Dev Team zp50_rewards_am running
[ 75] [ZP] Rewards: Frags & 5.0.8 ZP Dev Team zp50_rewards_fr running
[ 76] [ZP] Deathmatch 5.0.8 ZP Dev Team zp50_deathmatch running
[ 77] [ZP] Random Spawning 5.0.8 ZP Dev Team zp50_random_spa running
[ 78] [ZP] Spawn Protection 5.0.8 ZP Dev Team zp50_spawn_prot running
[ 79] [ZP] Zombie Features 5.0.8 ZP Dev Team zp50_zombie_fea running
[ 80] [ZP] Zombie Sounds 5.0.8 ZP Dev Team zp50_zombie_sou running
[ 81] [ZP] Zombie Damage 5.0.8 ZP Dev Team zp50_zombie_dam running
[ 82] [ZP] Human Unlimited A 5.0.8 ZP Dev Team zp50_human_ammo running
[ 83] [ZP] Flashlight 5.0.8 ZP Dev Team zp50_flashlight running
[ 84] [ZP] Nightvision 5.0.8 ZP Dev Team zp50_nightvisio running
[ 85] [ZP] Leap/Longjump 5.0.8 ZP Dev Team zp50_leap.amxx running
[ 86] [ZP] Pain Shock Free 5.0.8 ZP Dev Team zp50_painshockf running
[ 87] [ZP] Knockback 5.0.8 ZP Dev Team zp50_knockback. running
[ 88] [ZP] Weapon Drop/Strip 5.0.8 ZP Dev Team zp50_weapon_dro running
[ 89] [ZP] Effects: Infect 5.0.8 ZP Dev Team zp50_effects_in running
[ 90] [ZP] Effects: Cure 5.0.8 ZP Dev Team zp50_effects_cu running
[ 91] [ZP] Effects: Lighting 5.0.8 ZP Dev Team zp50_effects_li running
[ 92] [ZP] Ambience Effects 5.0.8 ZP Dev Team zp50_ambience_e running
[ 93] [CSO] M4A1 Dark Knight 1.0 || CLO AsepKhairulAnam@ buff_buffm4.amx running
[ 94] Janus-11 1.0 m4m3ts normal_janus11. running
[ 95] [CSO] Thunderbolt 3.0 Dias cso_extra_thund running
[ 96] New Jetpack 0.0.3 Bad_Bud,ZmOutSta NewJP_mu.amxx running
[ 97] [CSO] PlasmaGun 1.0 Dias Leon cso_extra_Plasm running
[ 98] [ZP] Extra Item: Frost 1.4 Raheem zp_frost_m4a1.a running
[ 99] [ZP] Addon: Perfect La 4.2 [P]erfec[T] [S]c zp_lasermine_pe running
[100] AK-47Long 1.0 misna zp_extra_aklong running
[101] [ZP] Extra: Cart Blue 1.0 KORD_12.7 zp_extra_cso_ca running
[102] unknown unknown unknown zp_extra_dinfin running
[103] [ZP] Extra: CSO Weapon 0.1 KORD_12.7 zp_extra_dual_g running
[104] [ZP] Weapon: Savery 1.0 Base: Batcon & x cso_weapon_save running
[105] [ZP] Extra: AWP Camo 1.0 Crock / =) (Popr zp_extra_awp_wo running
[106] Janus-11 1.0 m4m3ts zp_extra_janus1 running
[107] [ZP] Extra: Lighting E 1.0 Crock / =) (Popr zp_lighting_elf running
[108] [ZP] Weapon: M4A1 Silv 1.0 xUnicorn (t3rkec zp_weapon_m4a1_ running
[109] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 zp_extra_awpz.a running
[110] [ZP] Weapon: AK47 Beas 1.0 | 2018 xUnicorn (t3rkec zp_weapon_ak47_ running
[111] Brick Peace V2 1.0 Asdian zp_extra_m4a1le running
[112] [ZMO] Weapon: Lego Sho 1.0 Base: Batcon; Re zp_extra_legosh running
[113] [ZMO] Weapon: Deagle C 1.0 Chrescoe1 , Plan zp_extra_hunter running
[114] [ZMO]Weapon: Cyclone 1.0 Base: Batcon; Re zp_extra_cyclon running
[115] [CSO Like] BrickPiace 1.0 AsepKhairulAnam zp_extra_brickp running
[116] [ZP] Extra: M249 Pheon 1.0 Crock / =) (Popr zp_extra_m249_p running
[117] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 zp_extra_vulcan running
[118] unknown unknown unknown zp_extra_dartpi running
[119] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 zp_extra_railgu running
[120] [ZP] Weapon: BALROG3 1.0 PbI)I(Uu' / Batc zp_extra_barlog running
[121] [ZP] Extra: m134ex 1.0 LARS-DAY[BR]EAKE zp_extra_m134.a running
[122] [ZP] Main Menu 5.0.8 ZP Dev Team zp50_main_menu. running
[123] [ZP] Objective Remover 5.0.8 ZP Dev Team zp50_objective_ running
[124] [ZP] Gameplay Fixes 5.0.8 ZP Dev Team zp50_gameplay_f running
[125] [ZP] Team Scoring 5.0.8 ZP Dev Team zp50_team_scori running
[126] [ZP] Server Browser In 5.0.8 ZP Dev Team zp50_serverbrow running
[127] [ZP] HUD Information 5.0.8 ZP Dev Team zp50_hud_info.a running
[128] [ZP] Ammo Packs 5.0.8 ZP Dev Team zp50_ammopacks. running
[129] [ZP] Grenade: Fire 5.0.8 ZP Dev Team zp50_grenade_fi running
[130] [ZP] Grenade: Frost 5.0.8 ZP Dev Team zp50_grenade_fr running
[131] [ZP] Grenade: Flare 5.0.8 ZP Dev Team zp50_grenade_fl running
[132] [ZP] ZP 4.3 Subplugin 5.0.8 ZP Dev Team zp50_zp43_compa running
[133] [ZP] Can Auto Save Amm 0.1.0 ZombArena.Ru zp_save.amxx running
[134] [ZP] Addon: Knifes NEW Mr.TheFold, reda zp_addon_knifes running
[135] [ZP] Sub-Plugin: Parac 1.1 Random1, 93()|29 zbg_addons_para running
[136] New ZP Ammo-Menu 0.1 Sanya@ zp_ammomenu.amx running
[137] [ZP] ZP++ Ice Cube 1.0 DareDevil (Gyiov zp50_ice_cube.a running
[138] [ZP]Level System 6.0 Dambas zp_level_system running
[139] [ZP] Admin Lvl Menu 1.0 Dambas zp_level_admin_ running
[140] No Survivor Recoil v1.0 Stone/Mog zp_no_survivor. running
140 plugins, 134 running
Автор плагина
_RedGamer_
Версия плагина
1.0
Исходный код
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <zombieplague>

#define VIP_ACCESS ADMIN_LEVEL_B
#define SUPERVIP_ACCESS ADMIN_LEVEL_A
#define OWNER_ACCESS ADMIN_LEVEL_G
#define CREATOR_ACCESS ADMIN_MENU

new MAX_JUMP[33]
new jumpnum[33] = 0
new bool:dojump[33] = false

new g_jump
new const sprite_cylinder[] = { "sprites/laserbeam.spr" } //Спрайт Прыжка

public plugin_precache()
{
g_jump = engfunc(EngFunc_PrecacheModel, sprite_cylinder)
}

public plugin_init()
{
register_plugin("MultiJump Advanced","1.0","_RedGamer_")
}

public client_putinserver(id)
{
if(get_user_flags(id) & CREATOR_ACCESS) MAX_JUMP[id] = 3
else if(get_user_flags(id) & OWNER_ACCESS) MAX_JUMP[id] = 3
else if(get_user_flags(id) & SUPERVIP_ACCESS) MAX_JUMP[id] = 2
else if(get_user_flags(id) & VIP_ACCESS) MAX_JUMP[id] = 1
}

public client_disconnect(id)
{
MAX_JUMP[id] = 0
jumpnum[id] = 0
dojump[id] = false
}

public client_PreThink(id)
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id))
return PLUGIN_HANDLED

if(!is_user_alive(id))
return PLUGIN_CONTINUE

new button = get_user_button(id)
new oldbutton = get_user_oldbutton(id)

if((button & IN_JUMP) && !(get_entity_flags(id) & FL_ONGROUND) && !(oldbutton & IN_JUMP))
{
if(zp_get_user_zombie(id) || zp_get_user_survivor(id))
return PLUGIN_HANDLED

if(jumpnum[id] < MAX_JUMP[id])
{
dojump[id] = true
jumpnum[id]++
server_print("Jumpnum = %i", jumpnum[id])
cylinder(id)
return PLUGIN_CONTINUE
}
}

if((button & IN_JUMP) && (get_entity_flags(id) & FL_ONGROUND))
{
jumpnum[id] = 0
dojump[id] = false
}
return PLUGIN_CONTINUE
}

public client_PostThink(id)
{
if(!is_user_alive(id))
return PLUGIN_CONTINUE

if(!MAX_JUMP[id])
return PLUGIN_CONTINUE

if(dojump[id] == true)
{
new Float:velocity[3]
entity_get_vector(id,EV_VEC_velocity,velocity)
velocity[2] = random_float(265.0,285.0)
entity_set_vector(id,EV_VEC_velocity,velocity)
dojump[id] = false
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}

public cylinder(id)
{
new origin[3]
get_user_origin(id, origin)

if(get_user_flags(id) & VIP_ACCESS)
create_cylinder(origin, 200, g_jump, 0, 0, 5, 4, 250, 0, 0, 255, 255, 0)
else if(get_user_flags(id) & SUPERVIP_ACCESS)
create_cylinder(origin, 200, g_jump, 0, 0, 5, 4, 250, 0, 255, 0, 255, 0)
else if(get_user_flags(id) & OWNER_ACCESS)
create_cylinder(origin, 200, g_jump, 0, 0, 5, 4, 250, 155, 0, 255, 255, 0)
else if(get_user_flags(id) & CREATOR_ACCESS)
create_cylinder(origin, 200, g_jump, 0, 0, 5, 4, 250, 255, 0, 0, 255, 0)
}

stock create_cylinder(origin[3], addrad, sprite, startfrate, framerate, life, width, amplitude, red, green, blue, brightness, speed)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMCYLINDER)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2] + addrad)
write_short(sprite)
write_byte(startfrate)
write_byte(framerate)
write_byte(life)
write_byte(width)
write_byte(amplitude)
write_byte(red)
write_byte(green)
write_byte(blue)
write_byte(brightness)
write_byte(speed)
message_end()
}
В public cylinder()
VIP = CREATOR мне нужно VIP != CREATOR...
9 Апр 2023
Решил.. в public cylinder от "высшего" к "меньшему" выставил)
 
Сообщения
892
Реакции
149
Помог
25 раз(а)
Зачем использовать старые плагины, когда есть простые в использовании аналоги, да и на современном коде.
Вот к примеру -> Multi Jump by b0t
 
Сообщения
892
Реакции
149
Помог
25 раз(а)
wood-grouse, не заметил, что у человека его нету. Ну, я предложил всё равно, а человек пусть сам решает.
 
Сообщения
418
Реакции
-7
Предупреждения
8
Алексеич когда добавят возможность закрывать тему самому создателю темы?
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу