Zplague
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Zplague Entrar

Seu portal de Zombie Plague no Brasil


description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA Empty[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
coloquei o [ZP] Zombie VIP 1.7.2 original da alliedmodders!

so que donada durante o jogo, alguns players comum viram vip no /vips!

so que eles nao escrevem verdade nem nada! eles so viram vip

ai eu vo no arquivo vips.ini, e ta assim:

"201.11.15.110" "" "abcde" "de"; Exp: m7d28y2012
"Patrickk*Willian!" "" "abcde" "de"; Exp: m7d28y2012

antis de dar esse erro! eu queria colocar 1 skin pra vip.. ai eu peguei o zp50_admin_models.sma original do addons zp 5.0.8!

e editei aonde estava admin, troquei tudo da sma por vip!

SMA zp50_admin_models.sma, editada por min para dar skin para o vip!

Código:

[*]/*================================================================================
   
   -------------------------
   -*- [ZP] VIP Models -*-
   -------------------------
   
   This plugin is part of Zombie Plague Mod and is distributed under the
   terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
   
================================================================================*/

#include <amxmodx>
#include <amx_settings_api>
#include <cs_player_models_api>
#include <cs_weap_models_api>
#include <zp50_core>
#define LIBRARY_NEMESIS "zp50_class_nemesis"
#include <zp50_class_nemesis>
#define LIBRARY_SURVIVOR "zp50_class_survivor"
#include <zp50_class_survivor>

// Settings file
new const ZP_SETTINGS_FILE[] = "zombieplague.ini"

// Default models
new const models_vip_human_player[][] = { "zoa_vip" }
new const models_vip_human_knife[][] = { "models/v_knife.mdl" }
new const models_vip_zombie_player[][] = { "zombie_source" }
new const models_vip_zombie_claw[][] = { "models/zombie_plague/v_knife_zombie.mdl" }

#define PLAYERMODEL_MAX_LENGTH 32
#define MODEL_MAX_LENGTH 64
#define ACCESSFLAG_MAX_LENGTH 2

// Access flags
new g_access_vip_models[ACCESSFLAG_MAX_LENGTH] = "b"

// Custom models
new Array:g_models_vip_human_player
new Array:g_models_vip_human_knife
new Array:g_models_vip_zombie_player
new Array:g_models_vip_zombie_claw

new cvar_vip_models_human_player, cvar_vip_models_human_knife
new cvar_vip_models_zombie_player, cvar_vip_models_zombie_knife

public plugin_init()
{
   register_plugin("[ZP] VIP Models", ZP_VERSION_STRING, "ArCade")
   
   cvar_vip_models_human_player = register_cvar("zp_vip_models_human_player", "1")
   cvar_vip_models_human_knife = register_cvar("zp_vip_models_human_knife", "0")
   cvar_vip_models_zombie_player = register_cvar("zp_vip_models_zombie_player", "0")
   cvar_vip_models_zombie_knife = register_cvar("zp_vip_models_zombie_knife", "0")
}

public plugin_precache()
{
   // Initialize arrays
   g_models_vip_human_player = ArrayCreate(PLAYERMODEL_MAX_LENGTH, 1)
   g_models_vip_human_knife = ArrayCreate(MODEL_MAX_LENGTH, 1)
   g_models_vip_zombie_player = ArrayCreate(PLAYERMODEL_MAX_LENGTH, 1)
   g_models_vip_zombie_claw = ArrayCreate(MODEL_MAX_LENGTH, 1)
   
   // Load from external file
   amx_load_setting_string_arr(ZP_SETTINGS_FILE, "Player Models", "VIP HUMAN", g_models_vip_human_player)
   amx_load_setting_string_arr(ZP_SETTINGS_FILE, "Weapon Models", "V_KNIFE VIP HUMAN", g_models_vip_human_knife)
   amx_load_setting_string_arr(ZP_SETTINGS_FILE, "Player Models", "VIP ZOMBIE", g_models_vip_zombie_player)
   amx_load_setting_string_arr(ZP_SETTINGS_FILE, "Weapon Models", "V_KNIFE VIP ZOMBIE", g_models_vip_zombie_claw)
   
   // If we couldn't load from file, use and save default ones
   new index
   if (ArraySize(g_models_vip_human_player) == 0)
   {
      for (index = 0; index < sizeof models_vip_human_player; index++)
         ArrayPushString(g_models_vip_human_player, models_vip_human_player[index])
      
      // Save to external file
      amx_save_setting_string_arr(ZP_SETTINGS_FILE, "Player Models", "VIP HUMAN", g_models_vip_human_player)
   }
   if (ArraySize(g_models_vip_human_knife) == 0)
   {
      for (index = 0; index < sizeof models_vip_human_knife; index++)
         ArrayPushString(g_models_vip_human_knife, models_vip_human_knife[index])
      
      // Save to external file
      amx_save_setting_string_arr(ZP_SETTINGS_FILE, "Weapon Models", "V_KNIFE VIP HUMAN", g_models_vip_human_knife)
   }
   if (ArraySize(g_models_vip_zombie_player) == 0)
   {
      for (index = 0; index < sizeof models_vip_zombie_player; index++)
         ArrayPushString(g_models_vip_zombie_player, models_vip_zombie_player[index])
      
      // Save to external file
      amx_save_setting_string_arr(ZP_SETTINGS_FILE, "Player Models", "VIP ZOMBIE", g_models_vip_zombie_player)
   }
   if (ArraySize(g_models_vip_zombie_claw) == 0)
   {
      for (index = 0; index < sizeof models_vip_zombie_claw; index++)
         ArrayPushString(g_models_vip_zombie_claw, models_vip_zombie_claw[index])
      
      // Save to external file
      amx_save_setting_string_arr(ZP_SETTINGS_FILE, "Weapon Models", "V_KNIFE VIP ZOMBIE", g_models_vip_zombie_claw)
   }
   
   // Load from external file, save if not found
   if (!amx_load_setting_string(ZP_SETTINGS_FILE, "Access Flags", "VIP MODELS", g_access_vip_models, charsmax(g_access_vip_models)))
      amx_save_setting_string(ZP_SETTINGS_FILE, "Access Flags", "VIP MODELS", g_access_vip_models)
   
   // Precache models
   new player_model[PLAYERMODEL_MAX_LENGTH], model[MODEL_MAX_LENGTH], model_path[128]
   for (index = 0; index < ArraySize(g_models_vip_human_player); index++)
   {
      ArrayGetString(g_models_vip_human_player, index, player_model, charsmax(player_model))
      formatex(model_path, charsmax(model_path), "models/player/%s/%s.mdl", player_model, player_model)
      precache_model(model_path)
      // Support modelT.mdl files
      formatex(model_path, charsmax(model_path), "models/player/%s/%sT.mdl", player_model, player_model)
      if (file_exists(model_path)) precache_model(model_path)
   }
   for (index = 0; index < ArraySize(g_models_vip_human_knife); index++)
   {
      ArrayGetString(g_models_vip_human_knife, index, model, charsmax(model))
      precache_model(model)
   }
   for (index = 0; index < ArraySize(g_models_vip_zombie_player); index++)
   {
      ArrayGetString(g_models_vip_zombie_player, index, player_model, charsmax(player_model))
      formatex(model_path, charsmax(model_path), "models/player/%s/%s.mdl", player_model, player_model)
      precache_model(model_path)
      // Support modelT.mdl files
      formatex(model_path, charsmax(model_path), "models/player/%s/%sT.mdl", player_model, player_model)
      if (file_exists(model_path)) precache_model(model_path)
   }
   for (index = 0; index < ArraySize(g_models_vip_zombie_claw); index++)
   {
      ArrayGetString(g_models_vip_zombie_claw, index, model, charsmax(model))
      precache_model(model)
   }
}

public plugin_natives()
{
   set_module_filter("module_filter")
   set_native_filter("native_filter")
}
public module_filter(const module[])
{
   if (equal(module, LIBRARY_NEMESIS) || equal(module, LIBRARY_SURVIVOR))
      return PLUGIN_HANDLED;
   
   return PLUGIN_CONTINUE;
}
public native_filter(const name[], index, trap)
{
   if (!trap)
      return PLUGIN_HANDLED;
      
   return PLUGIN_CONTINUE;
}

public zp_fw_core_infect_post(id, attacker)
{
   // Skip if player doesn't have required admin flags
   if (!(get_user_flags(id) & read_flags(g_access_vip_models)))
      return;
   
   // Skip for Nemesis
   if (LibraryExists(LIBRARY_NEMESIS, LibType_Library) && zp_class_nemesis_get(id))
      return;
   
   // Apply admin zombie player model?
   if (get_pcvar_num(cvar_vip_models_zombie_player))
   {
      new player_model[PLAYERMODEL_MAX_LENGTH]
      ArrayGetString(g_models_vip_zombie_player, random_num(0, ArraySize(g_models_vip_zombie_player) - 1), player_model, charsmax(player_model))
      cs_set_player_model(id, player_model)
   }
   
   // Apply admin zombie claw model?
   if (get_pcvar_num(cvar_vip_models_zombie_knife))
   {
      new model[MODEL_MAX_LENGTH]
      ArrayGetString(g_models_vip_zombie_claw, random_num(0, ArraySize(g_models_vip_zombie_claw) - 1), model, charsmax(model))
      cs_set_player_view_model(id, CSW_KNIFE, model)
   }
}

public zp_fw_core_cure_post(id, attacker)
{
   // Skip if player doesn't have required admin flags
   if (!(get_user_flags(id) & read_flags(g_access_vip_models)))
      return;
   
   // Skip for Survivor
   if (LibraryExists(LIBRARY_SURVIVOR, LibType_Library) && zp_class_survivor_get(id))
      return;
   
   // Apply admin human player model?
   if (get_pcvar_num(cvar_vip_models_human_player))
   {
      new player_model[PLAYERMODEL_MAX_LENGTH]
      ArrayGetString(g_models_vip_human_player, random_num(0, ArraySize(g_models_vip_human_player) - 1), player_model, charsmax(player_model))
      cs_set_player_model(id, player_model)
   }
   
   // Apply admin human knife model?
   if (get_pcvar_num(cvar_vip_models_human_knife))
   {
      new model[MODEL_MAX_LENGTH]
      ArrayGetString(g_models_vip_human_knife, random_num(0, ArraySize(g_models_vip_human_knife) - 1), model, charsmax(model))
      cs_set_player_view_model(id, CSW_KNIFE, model)
   }
}

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
Faça um teste desativando o zp50_admin_models.amxx.
-------------------
Só uma pergunta: foi você que criou o plugin?

Código:

register_plugin("[ZP] VIP Models", ZP_VERSION_STRING, "ArCade")

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
kk, eu so iniciante! eu achava que o nome da pessoa que era o criador do plugin, apareceria durante o jogo!

todos os plugin que eu edito, eu troco pelo meu nick!

e proibido isso?

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
arcade escreveu:
kk, eu so iniciante! eu achava que o nome da pessoa que era o criador do plugin, apareceria durante o jogo!

todos os plugin que eu edito, eu troco pelo meu nick!

e proibido isso?


Não é proibido, mas é meio-irresponsável da sua parte querer editar os créditos de uma pessoa quem criou o plugin.

@Voltando ao tópico...

Você desativou o que eu pedi e fez o teste? zp50_admin_models.amxx

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
sim desativei! nao adiantou nao! vou passa a lista de plugins do zp!

plugins.zplague

Código:

; ZP 5.0 / Module Version
; -----------------------


; Engine

zp50_core.amxx


; APIs

amx_settings_api.amxx
cs_player_models_api.amxx
cs_teams_api.amxx
cs_maxspeed_api.amxx
cs_weap_models_api.amxx
cs_weap_restrict_api.amxx
cs_ham_bots_api.amxx


; Classes

zp50_class_zombie.amxx
zp50_class_human.amxx
zp50_class_nemesis.amxx
zp50_class_survivor.amxx
zp50_class_sniper.amxx


; Zombie Classes

zp50_class_zombie_classic.amxx
zp50_class_zombie_fat.amxx
zp50_class_zombie_assassin.amxx
zp50_class_zombie_catcher.amxx
zp50_class_zombie_rubber.amxx
zp50_class_zombie_vampire.amxx
zp50_class_zombie_burned.amxx

; Human Classes

zp50_class_human_classic.amxx
;zp50_class_human_raptor.amxx


; This must come before game modes for armor protection to work properly
zp50_human_armor.amxx


; Game Modes Manager

zp50_gamemodes.amxx


; Game Modes

zp50_gamemode_infection.amxx
zp50_gamemode_multi.amxx
zp50_gamemode_swarm.amxx
zp50_gamemode_nemesis.amxx
zp50_gamemode_survivor.amxx
zp50_gamemode_sniper.amxx
zp50_gamemode_plague.amxx
zp50_gamemode_armageddon.amxx


; Items Manager

zp50_items.amxx
;zp50_items_money.amxx
zp50_items_ammopacks.amxx
zp_addon_ldp.amxx
zp_biohazardicon.amxx
zp_sub_parachute.amxx
;zp_vip_models.amxx
zp43_rba.amxx
;zp_banco_register.amxx

; Extra Items

zp50_item_weapons.amxx
zp50_item_nightvision.amxx
zp50_item_antidote.amxx
zp50_item_zombie_madness.amxx
zp50_item_infection_bomb.amxx
zp_extra_goldenak.amxx
zp_extra_goldendg.amxx
zp_extra_silver_m4a1.amxx
zp_extra_sandbags.amxx
zp_extra_lasermine.amxx
zp_extra_unlimited_clip.amxx


; Admin

zp50_admin_commands.amxx
zp50_admin_menu.amxx
zp50_admin_models.amxx


; Buying

zp50_buy_menus.amxx
zp50_buy_zones.amxx


; Rewards

;zp50_rewards_money.amxx
zp50_rewards_ammopacks.amxx
zp50_rewards_frags_hp.amxx


; Deathmatch

zp50_deathmatch.amxx
zp50_random_spawn.amxx
zp50_spawn_protection.amxx


; Zombie/Human Features

zp50_zombie_features.amxx
zp50_zombie_sounds.amxx
zp50_zombie_damage.amxx
zp50_human_ammo.amxx


; Custom Features

zp50_flashlight.amxx
zp50_nightvision.amxx
zp50_leap.amxx
zp50_painshockfree.amxx
zp50_knockback.amxx
zp50_weapon_drop_strip.amxx


; Effects

zp50_effects_infect.amxx
zp50_effects_cure.amxx
zp50_effects_lighting.amxx
zp50_ambience_effects.amxx
;zp50_ambience_sounds.amxx


; Gameplay / Other

zp50_main_menu.amxx
zp50_objective_remover.amxx
zp50_gameplay_fixes.amxx
zp50_team_scoring.amxx
zp50_hud_info.amxx
zp50_serverbrowser_info.amxx
zp50_ammopacks.amxx


; Custom grenades

;zp50_grenade_flashbangs.amxx
zp50_grenade_fire.amxx
zp50_grenade_frost.amxx
zp50_grenade_flare.amxx


; ZP 4.3 Subplugin Compatibility

zp50_zp43_compat.amxx
;zp50_biohazard_compat.amxx


plugins normais

Código:


; AMX Mod X plugins

;Bans Avancados 3.4
bans_avancados.amxx

; Admin Base - Always one has to be activated
admin.amxx      ; admin base (required for any admin-related)
;admin_sql.amxx      ; admin base - SQL version (comment admin.amxx)
baseamx.amxx            ; base Ping - Booster version

; Basic
admincmd.amxx      ; basic admin console commands
;adminhelp.amxx      ; help command for admin console commands
adminslots.amxx   ; slot reservation
multilingual.amxx   ; Multi-Lingual management

; Menus
menufront.amxx      ; front-end for admin menus
cmdmenu.amxx      ; command menu (speech, settings)
plmenu.amxx      ; players menu (kick, ban, client cmds.)
telemenu.amxx      ; teleport menu (Fun Module required!)
mapsmenu.amxx      ; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx      ; console chat commands
antiflood.amxx      ; prevent clients from chat-flooding the server
noflood.amxx            ; Players Fake Flod
;scrollmsg.amxx      ; displays a scrolling message
;imessage.amxx      ; displays information messages
adminvote.amxx      ; vote commands

; Map related
;nextmap.amxx      ; displays next map in mapcycle (habilitando essa op��o seu servidor ficar� desprotegido)
;mapchooser.amxx      ; allows to vote for next map
timeleft.amxx      ; displays time left on map    (habilitando essa op��o seu servidor ficar� desprotegido)

; Configuration
pausecfg.amxx      ; allows to pause and unpause some plugins
statscfg.amxx      ; allows to manage stats plugins via menu and commands

; Counter-Strike
;restmenu.amxx      ; restrict weapons menu
statsx.amxx      ; stats on death or round end (CSX Module required!)
;miscstats.amxx      ; bunch of events announcement for Counter-Strike
;stats_logging.amxx   ; weapons stats logging (CSX Module required!)

; Enable to use AMX Mod plugins
;amxmod_compat.amxx   ; AMX Mod backwards compatibility layer

; Custom - Add 3rd party plugins here
plmenu.amxx
;slots_reservation.amxx
mapsmenu.amxx
amx_exec.amxx
autobuyfix.amxx
say.amxx                                                ;  all says
camerachanger.amxx
nademodes.amxx
precache.amxx
galileo.amxx
no_change_nick.amxx
auto_restart.amxx
antidivulgacao.amxx
bullet_damage.amxx
AutoResponder.amxx
xredirect.amxx
loadingsound.amxx
admin_chat_colors.amxx
say_fix.amxx
zm_vip.amxx
zm_vip_extra_g3sg1.amxx
zm_vip_extra_unlimited_clip.amxx
zm_vip_extra_bazooka.amxx
zm_vip_extra_goldendg.amxx

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
as vezes ele escreve /vm e compra o vip

Código:

zp_vip_cost_ammo 50 // How much ammo will cost VIP, if buying it from extra items menu [0-just opens menu, when select "VIP Menu".]


nessa linha do seu zm_vip.cfg ponha 0.

description[ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA EmptyRe: [ZP] Zombie VIP 1.7.2. ADCIONANDO PLAYER COMUM EM VIP! AJUDA

more_horiz
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder