#define PLUGIN "DJB Zombie Class Banchee" #define VERSION "1.0" #define AUTHOR "Csoldjb"
new const zclass_name[] = "Witch" new const zclass_info[] = "Come to HER" new const zclass_model[] = "witch_zombi_origin" new const zclass_clawmodel[] = "v_knife_witch_zombi.mdl" new const zclass_hemodel2[] = { "models/zombie_plague/v_zombibomb_witch.mdl" } new KNOCKBOMB_WITCH[] = "models/zombie_plague/v_zombibomb_witch.mdl" const zclass_health = 4200 const zclass_speed = 300 const Float:zclass_gravity = 1.5 const Float:zclass_knockback = 1.5
new const SOUND_FIRE[] = "zombie_plague/zombi_banshee_pulling_fire.wav" new const SOUND_BAT_HIT[] = "zombie_plague/zombi_banshee_laugh.wav" new const SOUND_BAT_MISS[] = "zombie_plague/zombi_banshee_pulling_fail.wav" new const MODEL_BAT[] = "models/zombie_plague/bat_witch.mdl" new const BAT_CLASSNAME[] = "banchee_bat" new spr_skull
new ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"))
if(!pev_valid(ent)) return PLUGIN_HANDLED
new Float:vecAngle[3],Float:vecOrigin[3],Float:vecVelocity[3],Float:vecForward[3] fm_get_user_startpos(id,5.0,2.0,-1.0,vecOrigin) pev(id,pev_angles,vecAngle)
if(id) iPlayersNum[0] = id else get_players(iPlayersNum, iCount, "ch")
for(new i = 0; i < iCount; i++) { if(is_user_connected(iPlayersNum[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, iPlayersNum[i]) write_byte(iPlayersNum[i]) write_string(szMsg) message_end() } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */
Еще кое что. Можно как нибудь сделать что бы ведьма раскрывала платье при пускании мышей? Если что вот моделька если надо: (Залил на файлообменик т.к. слишком большой файл)
Register System <== Register System от m0skVi4a ;] 45.137.155.4:45265 <== сервер зомби
new const zclass_name[] = "Witch" new const zclass_info[] = "Come to HER" new const zclass_model[] = "witch_zombi_host_xman" new const zclass_clawmodel[] = "v_knife_witch_zombi.mdl" new const zclass_hemodel2[] = { "models/zombie_plague/v_zombibomb_witch.mdl" } new KNOCKBOMB_WITCH[] = "models/zombie_plague/v_zombibomb_witch.mdl" const zclass_health = 4200 const zclass_speed = 300 const Float:zclass_gravity = 1.5 const Float:zclass_knockback = 1.5
new const SOUND_FIRE[] = "zombie_plague/zombi_banshee_pulling_fire.wav" new const SOUND_BAT_HIT[] = "zombie_plague/zombi_banshee_laugh.wav" new const SOUND_BAT_MISS[] = "zombie_plague/zombi_banshee_pulling_fail.wav" new const MODEL_BAT[] = "models/zombie_plague/bat_witch.mdl" new const BAT_CLASSNAME[] = "banchee_bat" new spr_skull
new ent = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"))
if(!pev_valid(ent)) return PLUGIN_HANDLED
new Float:vecAngle[3],Float:vecOrigin[3],Float:vecVelocity[3],Float:vecForward[3] fm_get_user_startpos(id,5.0,2.0,-1.0,vecOrigin) pev(id,pev_angles,vecAngle)
/hlds/web/www/amxxpc/work/scripting/202110/1615321832/zp_class_finger.sma(123) : error 017: undefined symbol "client_printcolor" /hlds/web/www/amxxpc/work/scripting/202110/1615321832/zp_class_finger.sma(172) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
1 Error. Could not locate output file /hlds/web/www/amxxpc/work/plugins/202110/1615321832/zp_class_finger.amx (compile failed).
Register System <== Register System от m0skVi4a ;] 45.137.155.4:45265 <== сервер зомби
Поблагодарили 0 раз Поблагодарили 0 раз
TheArtemMaps
9.3.2021, 22:45
Сообщение
Стаж: 6 лет 10 месяцев Город: Киев
Сообщений: 703
Благодарностей: 64
Полезность: < 0
$@NyA, Кстати анимация работает
Register System <== Register System от m0skVi4a ;] 45.137.155.4:45265 <== сервер зомби
/hlds/web/www/amxxpc/work/scripting/202110/1615321832/zp_class_finger.sma(123) : error 017: undefined symbol "client_printcolor" /hlds/web/www/amxxpc/work/scripting/202110/1615321832/zp_class_finger.sma(172) : warning 233: symbol "client_disconnect" is marked as deprecated: Use client_disconnected() instead.
1 Error. Could not locate output file /hlds/web/www/amxxpc/work/plugins/202110/1615321832/zp_class_finger.amx (compile failed).
TheArtemMaps, Ты опять в онлайне делаешь свои дела?)
if (player) players[0] = player; 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(); } } } }
stock print_chatColor(const id,const input[], any:...) { new msg[191], players[32], count = 1; vformat(msg,190,input,3); replace_all(msg,190,"\g","^4");// green replace_all(msg,190,"\n","^1");// normal replace_all(msg,190,"\t","^3");// team
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(); } }
if (player) players[0] = player; 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(); } } } }
stock print_chatColor(const id,const input[], any:...) { new msg[191], players[32], count = 1; vformat(msg,190,input,3); replace_all(msg,190,"\g","^4");// green replace_all(msg,190,"\n","^1");// normal replace_all(msg,190,"\t","^3");// team
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(); } }
Спасибо скомпилировалось, буду с компа проверю
Register System <== Register System от m0skVi4a ;] 45.137.155.4:45265 <== сервер зомби
Поблагодарили 0 раз Поблагодарили 0 раз
TheArtemMaps
10.3.2021, 17:13
Сообщение
Стаж: 6 лет 10 месяцев Город: Киев
Сообщений: 703
Благодарностей: 64
Полезность: < 0
$@NyA, Все работает спасибо опять же какой код брал и вставлял?
Register System <== Register System от m0skVi4a ;] 45.137.155.4:45265 <== сервер зомби
Далее вставляешь функцию ( Где число 29 - это с 30 уровня будет доступен класс ). Например 15 уровень - аля 14 ) if(zp_get_user_next_class(id) == g_string) ( Где - g_string - название класса Зомби - его ты найдёшь в zp_get_user_zombie_class ) Код:
public zp_user_infected_pre(id) { if(!(zp_level(id) > 29)) { if(zp_get_user_next_class(id) == g_string) { zp_set_user_zombie_class(id, 0) print_chatColor(id, "\g[ZP] \nДанный класс \tBanchee \nдоступен с \g30 уровня!") } } }
Что-бы не было ошибки с КолорЧат с выше 1.8.3 при компиляции - вставляешь в самый низ stock Код:
stock print_chatColor(const id,const input[], any:...) { new msg[191], players[32], count = 1; vformat(msg,190,input,3); replace_all(msg,190,"\g","^4");// green replace_all(msg,190,"\n","^1");// normal replace_all(msg,190,"\t","^3");// team
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(); } }
На анимацию игрока Вставляешь сначала это ( Где "skill1_loop" - Название анимации во вьювере).Для себя другую потом подберёшь "witch_zombi_host_xman" - название самой модели Зомби Код: