a o co chodzi napisze ponizej
/* # Plugin: # This is a plugin based on bleach the anime serie. Make your own Hollow or Death God by combine powers from characters from bleach. You can take what ever you want as long as you give credits. ------------------------------------------------------------------- # Development Team: # XzaR - Lead scripter # Contrus - Skill scripter ------------------------------------------------------------------- # Special Thanks: # Ryan,Geesu,Avanderik,Willyumyum for taken some codes from their WAR3X and WAR3FT. # Vandercal for take some effect codes from BattleMage. # XxAvalanchexX for getting the idea/codes from FrostNades. # Ludwig van and jtp10181 for taken codes from flame thrower. ------------------------------------------------------------------- # Changelog: # Version 1.0 - First release # Version 1.1 - Added attribute:Endurance # Version 1.2 - Ignore bots - Turning off save <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' /> and switch to short term <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' /> mode on lan - Fixed endurance - Adjusted the menu - Added information:Attributes - Added information:Items # Version 1.3 - Added item support - Added item:Gigai - Added item:Injection - Added another skill using system - Added kill assisting - Added two new admin commands - Fixed admin reset user - Fixed skill:Ice Ring - Full multilingual support # Version 1.4 - Added missed multilingual texts - Added motd:Commands - Added motd:Character - Added item:Brown Mantle - Fixed bm_skill_next & +/-bm_skill_use - Fixed admin give item - Fixed attributes - Fixed skill:Restrain - Edited skill:Hollow Bullet # Version 1.5 - Separated cvar's and commands - Fixed save bugs when switching method - Registered all cvars with cmds - Fixed SQL Save - Fixed spirit regenerater */ #pragma semicolon 1 #include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <fakemeta_util> #include <engine> #include <fun> #include <nvault> #include <sqlx> #define PLUGIN_NAME "Bleach" #define PLUGIN_VERSION "1.5" #define PLUGIN_AUTHOR "XzaR, Contrus" #define PLUGIN_TAG "[BLEACH]:" #define PLUGIN_VAULT "bleach" #include "bleachdefines.inl" #include "bleachglobals.inl" #include "bleachcmd.inl" #include "bleachlibplayer.inl" #include "bleachlibmisc.inl" #include "bleachlibeffects.inl" #include "bleachxp.inl" #include "bleachspirit.inl" #include "bleachsave.inl" #include "bleachskills.inl" #include "bleachitems.inl" #include "bleachadmin.inl" #include "bleachmenus.inl" #include "bleachclient.inl" #include "bleachmotd.inl" #include "bleachobjectives.inl" #include "bleachevents.inl" #include "bleachlogevents.inl" #include "bleachcommands.inl" #include "bleachcommands_cvar.inl" //--------------------------------------------------------------------- public plugin_modules() { require_module("cstrike"); require_module("fun"); require_module("fakemeta"); require_module("engine"); require_module("nvault"); require_module("mysql"); require_module("sqlite"); } public plugin_init() { //plugin register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR); //dictionary's register_dictionary("bleach/common.txt"); register_dictionary("bleach/status.txt"); register_dictionary("bleach/admin.txt"); register_dictionary("bleach/menus.txt"); register_dictionary("bleach/motds.txt"); //cvar's cvar_bleach=register_cvar("sv_bleach","0"); cvar_savexp=register_cvar("sv_savexp","0"); cvar_sql_host=register_cvar("bm_sql_host",BLEACH_SQL_HOST); cvar_sql_user=register_cvar("bm_sql_user",BLEACH_SQL_USER); cvar_sql_password=register_cvar("bm_sql_password",BLEACH_SQL_PASSWORD); cvar_sql_database=register_cvar("bm_sql_database",BLEACH_SQL_DATABASE); cvar_sql_type=register_cvar("bm_sql_type",BLEACH_SQL_TYPE); cvar_sql_table=register_cvar("bm_sql_table",BLEACH_SQL_TABLE); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_minplayers=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_minplayers",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_MIN_PLAYERS); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_share_radius=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_share",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_SHARE_RADIUS); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_suicide=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_suicide",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_SUICIDE); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_kill=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_kill",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_KILL); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_teamkill=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_teamkill",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_TEAMKILL); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_assist=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_assist",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_ASSIST); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_headshot=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_headshot",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_HEADSHOT); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_skill=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_skill",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_SKILL); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_negation=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_negation",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_NEGATION); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_plant=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_plant",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_PLANT); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_explode=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_explode",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_DEFUSE); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_defuse=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_defuse",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_EXPLODE); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_round=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_round",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_ROUND); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_bomber=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_bomber",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_BOMBER); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_planter=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_planter",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_PLANTER); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_defuser=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_defuser",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_DEFUSER); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_long_term=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_long_term",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_LONG_TERM); cvar_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_short_term=register_cvar("bm_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_short_term",BLEACH_<img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/tongue2.gif' class='bbc_emoticon' alt='xP' />_SHORT_TERM); //clcmd's cvar_clcmd_init(); //concmd's cvar_concmd_init(); //srvcmd's cvar_srvcmd_init(); //menu's register_menucmd(register_menuid("menu_main"),KEYS,"menu_handler_main"); register_menucmd(register_menuid("menu_next"),KEYS,"menu_handler_next"); register_menucmd(register_menuid("menu_info"),KEYS,"menu_handler_information"); register_menucmd(register_menuid("menu_classes"),KEYS,"menu_handler_classes"); register_menucmd(register_menuid("menu_attributes"),KEYS,"menu_handler_attributes"); register_menucmd(register_menuid("menu_skills"),KEYS,"menu_handler_skills"); register_menucmd(register_menuid("menu_items"),KEYS,"menu_handler_items"); //forward's register_forward(FM_CmdStart,"fm_cmd_start"); //event's register_event("ResetHUD","event_hud_reset","be"); register_event("TextMsg","event_restart_attempt","a","2=#Game_will_restart_in"); register_event("BarTime","event_bartime","be"); register_event("SetFOV","event_zoom","be"); register_event("CurWeapon","event_current_weapon","be","1=1"); register_event("ItemPickup","event_item_pickup","be"); //logevent's register_logevent("logevent_game",2,"0=World triggered"); register_logevent("logevent_player",3,"1=triggered"); register_logevent("logevent_objective_team",6,"2=triggered"); //touch's register_touch("item_drop","player","item_drop_touch"); register_touch("npc_gigai","player","item_gigai_touch"); //user message's g_msg_screen_fade=get_user_msgid("ScreenFade"); g_msg_death_msg=get_user_msgid("DeathMsg"); g_msg_screen_shake=get_user_msgid("ScreenShake"); g_msg_bartime=get_user_msgid("BarTime"); g_msg_status_icon=get_user_msgid("StatusIcon"); //misc get_configsdir(amxx_config_dir,63); get_basedir(amxx_base_dir,63); get_datadir(amxx_data_dir,63); } public plugin_cfg() { new cfg_path[64] = "%s/bleach.cfg"; format(cfg_path,63,cfg_path,amxx_config_dir); if(file_exists(cfg_path)) { server_cmd("exec %s",cfg_path); } } public plugin_precache() { precache_generic("bleach.css"); g_sprite_lightning=precache_model("sprites/lgtning.spr"); g_sprite_beam=precache_model("sprites/laserbeam.spr"); g_sprite_burning=precache_model("sprites/xfire.spr"); g_sprite_smoke=precache_model("sprites/steam1.spr"); g_sprite_explosion=precache_model("sprites/explode1.spr"); g_sprite_shockwave=precache_model("sprites/shockwave.spr"); g_sprite_streak=precache_model("sprites/streak.spr"); g_sprite_pflare=precache_model("sprites/bleach/pflare.spr"); g_sprite_gwave=precache_model("sprites/gwave1.spr"); copy(g_sound[BLEACH_SOUND_LEVELUP],63,"bleach/levelup.wav"); copy(g_sound[BLEACH_SOUND_WLIGHT],63,"bleach/white_lightning.wav"); copy(g_sound[BLEACH_SOUND_IRING],63,"bleach/ice_ring.wav"); copy(g_sound[BLEACH_SOUND_CERO],63,"bleach/cero.wav"); for (new i = 0; i < BLEACH_MAX_SOUNDS; i++ ) { precache_sound(g_sound[i]); } precache_model("models/sphere.mdl"); return PLUGIN_CONTINUE; } public plugin_end() { if(get_pcvar_num(cvar_bleach) != 1) return PLUGIN_CONTINUE; save_all_players(); database_close(); return PLUGIN_CONTINUE; } //--------------------------------------------------------------------- public print_hud_player(id) { /* L_HUD_PLAYER: [Klasa]^n [Doswiadczenie]^n [Level]^n [Attributepoints]^n [Punkty skilli: %d]^n [Reiatsu]^n [Przedmiot] : */ set_hudmessage(200,180,0,0.02,0.207,0, 0.0,4.9,0.0,0.0,BLEACH_HUD_PLAYER); show_hudmessage(id,"[Class]^n [Experience]^n [Level]^n [Attributepoints]^n [Skillpoints]^n [Spirit Power: %d/%d]^n [Item]", g_bleach_classes[g_player_class[id]], g_player_experience[id], g_player_next_level[g_player_level[id]], g_player_level[id],BLEACH_MAX_LEVELS, g_player_attributepoints[id], g_player_skillpoints[id], g_player_spirit[id], g_player_max_spirit[id], g_item_names[g_player_item[id]]); } public print_hud_status(id,const message[],...) { static buffer_message[512]; vformat(buffer_message,511,message,3); set_hudmessage(200,180,0,0.43,0.8,1, 0.0,3.0,0.0,0.0,BLEACH_HUD_STATUS); show_hudmessage(id,buffer_message); }
A wiec mam problem z podmiana dzwieku do skilla a mianowicie jak jest :
copy(g_sound[BLEACH_SOUND_CERO],63,"bleach/cero.wav");
to chcialbym dodac dzwiek ktory chce np.cherry_blossoms
wiec wkleilem ta nutke w sounds i wpisalem zamiast "cero.wav" "cherry_blossoms.wav"
plik sie przekompilowal na .amxx ale na serwerze dalej jest dzwiek jaki byl wtedy
Mozecie jakos pomoc ? /;