Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
problema zm_vip
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
1694
Mihai94.
[Fondator ZP]
Status: Offline
(since 04-12-2019 07:04)
Joined: 20 Jan 2016
Posts: 1298
,
Topics: 159
Location:
Romania
Reputation:
191.6
Votes
: 88
Posted: 26-01-2018, 16:46:08
| Translate post to:
... (
Click for more languages
)
salut am acest plugin
http://www78.zippyshare.com/v/j9QOd7WX/file.html
este pt serverele de zombie plague zm_vip problema lui este ca imi da in consola cand scriu amx_plugins
Code:
zm_vip bad load
are toate sursele puse unde trebuie nu lipseste nimic de compilat se copileaza numai ca nu ruleaza pe server.
ZP.FREAKZ.RO BEST SERVER ZOMBIE
0
0
Back to top
TwisTer
[GOOGLE SEARCHER]
Status: Offline
(since 17-05-2023 01:23)
Joined: 04 May 2007
Posts: 6962
,
Topics: 147
Location:
Romania
Reputation:
2724.4
Votes
: 231
Posted: 26-01-2018, 21:35:05
| Translate post to:
... (
Click for more languages
)
Trebuie sa creezi libraria zm_vip.inc in care sa adaugi nativ-urile astia :
Code:
#if MODIFICATION == NEW
#define ZP_ITEM_AVAILABLE 0
#define ZP_ITEM_NOT_AVAILABLE 1
#define ZP_ITEM_DONT_SHOW 2
#define ZP_CLASS_AVAILABLE 0
#define ZP_CLASS_NOT_AVAILABLE 1
#define ZP_CLASS_DONT_SHOW 2
native zp_core_is_zombie(id)
forward zp_fw_core_spawn_post(id)
forward zp_fw_core_infect_pre(id, attacker)
forward zp_fw_core_infect_post(id, attacker)
forward zp_fw_core_cure_post(id, attacker)
native zp_ammopacks_get(id)
native zp_ammopacks_set(id, amount)
native zp_class_human_menu_text_add(const text[])
forward zp_fw_class_human_select_pre(id, classid)
native zp_class_human_register(const name[], const description[], health, Float:speed, Float:gravity)
native zp_class_zombie_menu_text_add(const text[])
forward zp_fw_class_zombie_select_pre(id, classid)
native zp_class_zombie_register(const name[], const description[], health, Float:speed, Float:gravity)
native zp_items_register(const name[], cost)
forward zp_fw_items_select_pre(id, itemid, ignorecost)
forward zp_fw_items_select_post(id, itemid, ignorecost)
native zp_items_show_menu(id)
native zp_items_menu_text_add(const text[])
native cs_set_player_model(id, const model[])
forward zp_fw_grenade_fire_pre(id)
forward zp_fw_grenade_frost_pre(id)
#else
native zp_get_user_bombardier(id)
#define ZP_TEAM_ANY 0
native zp_get_user_zombie(id)
native zp_get_user_next_class(id)
native zp_set_user_zombie_class(id, classid)
native zp_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback)
native zp_override_user_model(id, const newmodel[], modelindex = 0)
native zp_get_user_nemesis(id)
native zp_get_user_survivor(id)
forward zp_user_infect_attempt(id, infector, nemesis)
forward zp_user_infected_post(id, infector, nemesis)
forward zp_user_humanized_post(id, survivor)
forward zp_user_infected_pre(id, infector, nemesis)
forward zp_extra_item_selected(id, itemid)
forward zp_round_started(gamemode, id)
native zp_register_extra_item(const name[], cost, teams)
native zp_force_buy_extra_item(id, itemid, ignorecost = 0)
native zp_get_extra_item_id(const name[])
native zp_get_user_ammo_packs(id)
native zp_set_user_ammo_packs(id, amount)
#define ZP_PLUGIN_HANDLED 97
#endif
Dupa care fisierul nou creat(libraria) zm_vip.inc trebuie adaugat(a) in folderul
scripting/include.
In plugin scoti toata partea de mai sus si bineinteles scoti // din fata "//#include <zm_vip>"
Practic incarci libraria din afara, ca sa iti recunoasca toate native-urile respective, de asta nu functioneaza, nu iti recunoaste functiile din librarie.
Nu am verificat daca merge sau nu, am vrut doar sa clarific cateva lucruri ca tu sa intelegi.
0
0
Back to top
Mihai94.
[Fondator ZP]
Status: Offline
(since 04-12-2019 07:04)
Joined: 20 Jan 2016
Posts: 1298
,
Topics: 159
Location:
Romania
Reputation:
191.6
Votes
: 88
Posted: 26-01-2018, 22:11:53
| Translate post to:
... (
Click for more languages
)
pai are librarie zm_vip uite asta e
Spoiler:
/*****************************************************************************
* ZM VIP 2.0.0 inlcude file
* Author: aaarnas
*
* To make extra items, classes controlable by ZM VIP, add:
* #include <zm_vip>
* at the end of other #include's in plugin .sma file. Then compile
* plugin and add to server. You don't need to change anything. Just
* include this file to plugin and go on. Easy!
*
*****************************************************************************
* Geek stuf:
* If you writing other plugins (not items or classes) or having problem
* with compability error, you can disable it (if you know what you are
* doing) by adding:
* #define ZM_VIP_DISABLE_AUTO_CONVERT
* at the top of plugin.
* For example, if you want to include <zm_vip> to extra item plugin and
* won't affect it to use with zombie VIP (left for main mod), add this
* define to the top of plugin and plugin will remains the same and you
* will be able to use all <zm_vip> natives and forwards.
****************************************************************************/
//----------------------------------------------------------------------------
// Natives
//----------------------------------------------------------------------------
/**
* Returns having player VIP flags. If @return > 0 - player is VIP.
* @id - player id
* @return - vip flags (return 0 if player not connected)
* For flags values check vips.ini file or zm_vip.sma at line:
* "enum _:player_attributes"
* Example for check if player has VIP model attribute:
* if (zv_get_user_flags(id)&AT_VIP_MODEL)
*
* If player is VIP:
* if (zv_get_user_flags(id))
*/
native zv_get_user_flags(id)
#define ZV_DURATION_IGNORE -1
#define ZV_DURATION_PERMANENT 0
#define ZV_DURATION_TILL_DISCONNECT ~'t'
#define ZV_DURATION_TILL_MAP ~('t'|'m')
/**
* Set VIP flags for player.
* @id - player id, 0 - all players
* @duration - time (in seconds), how long player will have VIP.
* Can be used ZV_DURATION_ constants.
* @flags - flags, what attributes VIP player will have.
* All AT_ constants, or use AT_ALL for all attributes.
* If you want to just give a VIP status without any abbilities, use AT_NONE flag.
* Because VIP can't exist without any flags set, having only this dummy flag, player can
* remain in VIP status on the system.
* @return - [true - VIP created/updated succesfully,
* false - used ZV_DURATION_IGNORE for player, that doesn't have VIP
* or player is not connected to server]
*
* NOTE: if id = 0, always returns true.
* Examples:
* If you want to set a new VIP:
* //player will get VIP privilegies for 2 days and only multijump and armor abbilities
* zv_set_user_flags(id, 60*60*24*2, AT_MULTIJUMP|AT_ARMOR)
* //player will get VIP all VIP privilegies for 30 days (1 month)
* zv_set_user_flags(id, 60*60*24*30, AT_ALL)
* Update existing:
* //update current user flags (adde extra gravity). Privilegie duration remains the same.
* //NOTE: if zv_set_user_flags(id, ZV_DURATION_IGNORE... will be called on player, that don't have privilegies
* //function will return false and no action will be taken. You need to set duration for first time.
* zv_set_user_flags(id, ZV_DURATION_IGNORE, zv_get_user_flags(id)|AT_EXTRA_GRAVITY)
*/
native zv_set_user_flags(id, duration, flags)
/**
* Remove player VIP privilegie
* @id - player id, 0 - all players
* @return - [true - success,
* false - player not connected or doesn't have privilegies]
*
* NOTE: if id = 0, always returns true.
*/
native zv_remove_user_flags(id)
/**
* Get count of currently existing registered VIPs
* @return - VIP'S count;
*/
native zv_get_vips_num()
//----------------------------------------------------------------------------
// Attributes (Flags)
//----------------------------------------------------------------------------
#define AT_ALL 0
#define AT_MULTIJUMP (1<<0) // a
#define AT_ARMOR (1<<1) // b
#define AT_UNLIMITED_CLIP (1<<2) // c
#define AT_NO_FALL_DMG (1<<3) // d
#define AT_DAMAGE_REWARD (1<<4) // e
#define AT_EXTRA_DMG (1<<5) // f
#define AT_EXTRA_HP (1<<6) // g
#define AT_EXTRA_GRAVITY (1<<7) // h
#define AT_EXTRA_FRAGS (1<<8) // i
#define AT_EXTRA_KILL_AMMO (1<<9) // j
#define AT_EXTRA_ARMOR (1<<10) // k
#define AT_EXTRA_INFECT_AMMO (1<<11) // l
#define AT_EXTRA_INFECT_HEALTH (1<<12) // m
#define AT_EXTRA_ITEMS (1<<12) // n
#define AT_VIP_MODEL (1<<14) // o
#define AT_VIP_CLASS (1<<15) // p
#define AT_CHATTAG (1<<16) // q
#define AT_VIPINSCORE (1<<17) // r
#define AT_CUSTOM_S (1<<18) // s
#define AT_CUSTOM_T (1<<19) // t
#define AT_CUSTOM_U (1<<20) // u
#define AT_CUSTOM_V (1<<21) // v
#define AT_CUSTOM_W (1<<22) // w
#define AT_CUSTOM_X (1<<23) // x
#define AT_CUSTOM_Y (1<<24) // y
#define AT_NONE (1<<25) // z
//////////////////////////////////////////////////////////////////////////////
/// Technical stuff, you don't need to do anything below ///
//////////////////////////////////////////////////////////////////////////////
#pragma reqlib zm_vip
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib zm_vip
#endif
//Workaround for #elseif bug.
#if !(defined ZM_VIP_DISABLE_AUTO_CONVERT) && defined _zombieplague_included
native zv_force_buy_extra_item(id, itemid, ignorecost = 0)
native zv_get_extra_item_id(const name[])
forward zv_extra_item_selected(id, itemid)
native zv_register_extra_item(const name[], const description[], cost, team)
native zv_register_extra_item2(const name[], cost, teams)
native zv_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback)
#define zp_force_buy_extra_item zv_force_buy_extra_item
#define zp_get_extra_item_id zv_get_extra_item_id
#define zp_extra_item_selected zv_extra_item_selected
#define zp_register_extra_item zv_register_extra_item2
#define zp_register_zombie_class zv_register_zombie_class
#endif
#if !(defined ZM_VIP_DISABLE_AUTO_CONVERT) && defined _zp50_items_included
native zv_items_register(const name[], cost)
#define zp_items_register zv_items_register
#endif
#if !(defined ZM_VIP_DISABLE_AUTO_CONVERT) && defined _zp50_class_zombie_included
native zv_class_zombie_register(const name[], const description[], health, Float:speed, Float:gravity)
#define zp_class_zombie_register zv_class_zombie_register
#endif
#if !(defined ZM_VIP_DISABLE_AUTO_CONVERT) && defined _zp50_class_human_included
native zv_class_human_register(const name[], const description[], health, Float:speed, Float:gravity)
#define zp_class_human_register zv_class_human_register
#endif
#if !(defined _zp50_items_included) && !(defined _zombieplague_included) && !(defined _zp50_class_zombie_included) && !(defined _zp50_class_human_included) && !(defined ZM_VIP_DISABLE_AUTO_CONVERT)
#error "Unknown plugin type. ZM VIP can't do anything with this plugin, or #include <zm_vip> is not at the end of other includes. Plugin should be zombie/human class or extra item"
#endif
si daca scot din fata de la include zm_vip acele bare /// o sa dea eroare de compilare asta este eroarea pe care o primesc
Code:
AMX Mod X Compiler 1.8.3-manual
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team
Modified for
http://www.Freakz.ro
/ amx.freakz.ro
freakz_ro/amx/include/zm_vip.inc(154) : fatal error 111: user error: "Unknown plugin type. ZM VIP can't do anything with this plugin, or #include <zm_vip> is not at the end of other includes. Plugin should be zombie/human class or extra item"
Compilation aborted.
1 Error.
Done.
multumesc.
ZP.FREAKZ.RO BEST SERVER ZOMBIE
0
0
Back to top
TwisTer
[GOOGLE SEARCHER]
Status: Offline
(since 17-05-2023 01:23)
Joined: 04 May 2007
Posts: 6962
,
Topics: 147
Location:
Romania
Reputation:
2724.4
Votes
: 231
Posted: 30-01-2018, 00:00:28
| Translate post to:
... (
Click for more languages
)
Compileaza local, e posibil ca libaria respectiva sa nu fie pe site si e normal sa iti dea eroare de compilare.
Instaleaza amxmodx si compileaza local.
0
0
Back to top
Mihai94.
[Fondator ZP]
Status: Offline
(since 04-12-2019 07:04)
Joined: 20 Jan 2016
Posts: 1298
,
Topics: 159
Location:
Romania
Reputation:
191.6
Votes
: 88
Posted: 30-01-2018, 11:03:01
| Translate post to:
... (
Click for more languages
)
am compilat si local si pe site aceiasi problema, mai am un plugin facut de edutzu rang_chat_admine si ala tot bad load scrie am intrebat la host si mi sa spus ca nu ar fi compatibil scriptul cu versiunea de rehlds pe care o foloseste firma de host, cica el ar fi facut pentru HLDS si cei de la host folosesc REHLDS, acuma nush care e legatura dintre astea 2 dar practic aceste 2 pluginuri nu merge deloc pe server. multumesc.
ZP.FREAKZ.RO BEST SERVER ZOMBIE
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 06-05-2024, 05:09:38
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details