Eklenti Hata
Moderatör: Moderatörler
-
Konu Sahibi - Mesajlar: 837
- Kayıt: Çrş Şub 13, 2019 5:51 pm
- Server Ip/DNS: 213.238.173.144
- Clan İsmi: BLacK MasK Bas
Eklenti Hata
Arkadaşlar Eklentide şu hataları verdi yardımcı olur musunuz acaba ? Çok teşekkürler şimdiden.
/home/araclar/compiler/include/dhudmessage.inc(19) : error 021: symbol already defined: "set_dhudmessage"
/home/araclar/compiler/include/dhudmessage.inc(24) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(34) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(37) : error 021: symbol already defined: "show_dhudmessage"
/home/araclar/compiler/include/dhudmessage.inc(42) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(44) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/dhudmessage.inc(45) : error 054: unmatched closing brace
/home/araclar/compiler/include/dhudmessage.inc(46) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(49) : warning 218: old style prototypes used with optional semic
/home/araclar/compiler/include/dhudmessage.inc(19) : error 021: symbol already defined: "set_dhudmessage"
/home/araclar/compiler/include/dhudmessage.inc(24) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(34) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(37) : error 021: symbol already defined: "show_dhudmessage"
/home/araclar/compiler/include/dhudmessage.inc(42) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(44) : warning 218: old style prototypes used with optional semicolumns
/home/araclar/compiler/include/dhudmessage.inc(45) : error 054: unmatched closing brace
/home/araclar/compiler/include/dhudmessage.inc(46) : error 010: invalid function or declaration
/home/araclar/compiler/include/dhudmessage.inc(49) : warning 218: old style prototypes used with optional semic
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 837
- Kayıt: Çrş Şub 13, 2019 5:51 pm
- Server Ip/DNS: 213.238.173.144
- Clan İsmi: BLacK MasK Bas
Eklenti Hata
Eklenti kaynak kod scripting klasörüne yüklendi ancak derlenemedi.Eklenti derlenemedi. Bide bunu dedi.
Link: | |
Linklerini gizle |
-
- Mesajlar: 45
- Kayıt: Cum Ara 25, 2020 5:50 pm
Eklenti Hata
include dosyasında çok hata var dhudmessages internetten bulunabilir diye biliyorum fakat onla çakışırmı bilemem
Link: | |
Linklerini gizle |
-
- Mesajlar: 1402
- Kayıt: Sal Oca 29, 2019 11:28 pm
- Clan İsmi: MoonGaming
Eklenti Hata
Kod: Tümünü seç
#include <amxmodx>
#include <engine>
#include <fakemeta_util>
#include <zombieplague>
#define PLUGIN "Nemesis Skill"
#define VERSION "1.0"
#define AUTHOR "Universe"
#define TASK_FBURN 100
#define ID_FBURN (taskid - TASK_FBURN)
new bool:g_fRoundEnd, g_burning_duration[33], g_UseSkill[33] = 0, g_UseSkillCooldown[33], bool:g_SkillIsCooldown[33], bool:g_RoundEnd
new g_smoke[33], g_smoke_wait[33], Float:g_smoke_origin[33][3]
new g_flameSpr, g_smokeSpr, g_Sprite, g_Smoke_Skill_Sprite
#define FIRE_DURATION 7 //
#define FIRE_DAMAGE 1 //
#define SKILL_COUNT 100 //
#define SKILL_COOLDOWN 14.0 //
#define SKILL_SMOKE_TIME 8.0 //
#define SKILL_SMOKE_COOLDOWN 17.0 //
#define SKILL_SMOKE_SIZE 4 //
#define SKILL_WAVE_RADIUS 400.0 //
new const skill_wave_color[3] = {255, 0, 0} //
new const skill_sprite_wave[] = "sprites/xman2030/shockwave.spr" //
new const skill_sprite_flame[] = "sprites/xman2030/flame.spr" //
new const skill_sprite_smoke[] = "sprites/xman2030/black_smoke3.spr" //
new const skill_sprite_smoke_cloud[] = "sprites/xman2030/smoke.spr" //
new const skill_sound_smoke_cloud[][] = { "xman2030/smoke.wav" } //
new const skill_sound_wave[][] = { "xman2030/slash.wav" } //
enum (+= 100)
{
TASK_SMOKE = 2000,
TASK_SMOKE_EXP,
TASK_WAIT_SMOKE,
TASK_BOT_USE_SKILL
}
#define ID_SMOKE (taskid - TASK_SMOKE)
#define ID_SMOKE_EXP (taskid - TASK_SMOKE_EXP)
#define ID_WAIT_SMOKE (taskid - TASK_WAIT_SMOKE)
#define ID_BOT_USE_SKILL (taskid - TASK_BOT_USE_SKILL)
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_CmdStart, "fw_CmdStart");
register_logevent("RoundEnd", 2, "1 = Round_End");
register_event("HLTV", "event_round_start", "a", "1 = 0", "2 = 0");
}
public client_putinserver(iPlayer)
{
g_UseSkill[iPlayer] = 0;
g_SkillIsCooldown[iPlayer] = false;
Reset(iPlayer);
}
public client_disconnected(iPlayer)
{
g_UseSkill[iPlayer] = 0;
g_SkillIsCooldown[iPlayer] = false;
Reset(iPlayer);
}
public zp_user_infected_post(id, infector)
{
if(zp_get_user_nemesis(id))
{
ChatColor(id, "!gAteş Bölgesi İçin BAS [E]");
ChatColor(id, "!gDuman Perdesi İçin BAS [R]");
}
}
public RoundEnd()
{
g_RoundEnd = true;
for(new i = 1; i <= 32; i++)
{
if(zp_get_user_nemesis(i))
{
g_UseSkill[i] = 0;
g_SkillIsCooldown[i] = false;
}
}
}
public event_round_start()
g_RoundEnd = false;
public plugin_precache()
{
g_Sprite = precache_model(skill_sprite_wave);
g_flameSpr = precache_model(skill_sprite_flame);
g_smokeSpr = precache_model(skill_sprite_smoke);
g_Smoke_Skill_Sprite = precache_model(skill_sprite_smoke_cloud);
static i
for(i = 0; i < sizeof skill_sound_smoke_cloud; i++)
precache_sound(skill_sound_smoke_cloud[i]);
for(i = 0; i < sizeof skill_sound_wave; i++)
precache_sound(skill_sound_wave[i]);
}
public fw_CmdStart(iPlayer, UcHandle, Seed)
{
if(!is_user_alive(iPlayer))
return FMRES_IGNORED;
if(zp_get_user_nemesis(iPlayer))
{
static button, oldbutton;
button = get_uc(UcHandle, UC_Buttons);
oldbutton = pev(iPlayer, pev_oldbuttons);
if((button & IN_USE) && !(oldbutton & IN_USE))
{
g_UseSkillCooldown[iPlayer] = floatround(SKILL_COOLDOWN);
if(g_UseSkill[iPlayer] < SKILL_COUNT)
{
set_task(1.0, "Skill_Cooldown", iPlayer, _, _, "a", g_UseSkillCooldown[iPlayer]);
if(!g_SkillIsCooldown[iPlayer])
{
g_SkillIsCooldown[iPlayer] = true;
use_skill_wave(iPlayer);
g_UseSkill[iPlayer]++;
new count = SKILL_COUNT - g_UseSkill[iPlayer];
emit_sound(iPlayer, CHAN_STREAM, skill_sound_wave[random_num(0, sizeof skill_sound_wave - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false)
show_hudmessage(iPlayer, "", count);
}
else
{
set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false)
show_hudmessage(iPlayer, "");
}
}
else if(g_UseSkill[iPlayer] + 1 > SKILL_COUNT)
{
set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false)
show_hudmessage(iPlayer, "Limite GELDİN Artık Kullanamassın");
}
}
else if((button & IN_RELOAD) && !(oldbutton & IN_RELOAD))
{
if (g_RoundEnd)
return FMRES_IGNORED;
if (zp_get_user_nemesis(iPlayer) && !g_smoke[iPlayer] && !g_smoke_wait[iPlayer])
{
g_smoke[iPlayer] = 1
pev(iPlayer, pev_origin, g_smoke_origin[iPlayer])
set_task(0.1, "SmokeExplode", iPlayer + TASK_SMOKE_EXP)
emit_sound(iPlayer, CHAN_STREAM, skill_sound_smoke_cloud[random_num(0, sizeof skill_sound_smoke_cloud - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
set_task(SKILL_SMOKE_TIME, "RemoveSmoke", iPlayer + TASK_SMOKE)
}
}
return FMRES_HANDLED;
}
return FMRES_HANDLED;
}
public Skill_Cooldown(iPlayer)
{
if(is_user_alive(iPlayer))
{
g_UseSkillCooldown[iPlayer] = g_UseSkillCooldown[iPlayer] - 1;
if(g_SkillIsCooldown[iPlayer] && (SKILL_COUNT - g_UseSkill[iPlayer] != 0))
{
if(g_UseSkillCooldown[iPlayer] <= 0)
{
remove_task(iPlayer);
g_UseSkillCooldown[iPlayer] = 0;
g_SkillIsCooldown[iPlayer] = false;
set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false)
show_hudmessage(iPlayer, "");
}
}
else
remove_task(iPlayer);
}
}
public use_skill_wave(iPlayer)
{
static Float:flOrigin[3], iVictim;
entity_get_vector(iPlayer, EV_VEC_origin, flOrigin);
iVictim = -1;
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, flOrigin, 0);
write_byte(TE_BEAMCYLINDER);
engfunc(EngFunc_WriteCoord, flOrigin[0]);
engfunc(EngFunc_WriteCoord, flOrigin[1]);
engfunc(EngFunc_WriteCoord, flOrigin[2]);
engfunc(EngFunc_WriteCoord, flOrigin[0]);
engfunc(EngFunc_WriteCoord, flOrigin[1]);
engfunc(EngFunc_WriteCoord, flOrigin[2] + SKILL_WAVE_RADIUS);
write_short(g_Sprite);
write_byte(0);
write_byte(0);
write_byte(10);
write_byte(25);
write_byte(0);
write_byte(skill_wave_color[0]);
write_byte(skill_wave_color[1]);
write_byte(skill_wave_color[2]);
write_byte(200);
write_byte(0);
message_end();
while((iVictim = find_ent_in_sphere(iVictim, flOrigin, SKILL_WAVE_RADIUS)) != 0)
{
if(is_user_connected(iVictim) && is_user_alive(iVictim) && !zp_get_user_zombie(iVictim))
{
if(!task_exists(iVictim + TASK_FBURN))
{
g_burning_duration[iVictim] += FIRE_DURATION * 5;
set_task(0.1, "BurningFlame", iVictim + TASK_FBURN, _, _, "b");
}
}
}
}
public BurningFlame(taskid)
{
static origin[3];
get_user_origin(ID_FBURN, origin);
if (g_fRoundEnd || g_burning_duration[ID_FBURN] < 1 || zp_get_user_nemesis(ID_FBURN))
{
message_begin(MSG_PVS, SVC_TEMPENTITY, origin);
write_byte(TE_SMOKE);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2] - 50);
write_short(g_smokeSpr);
write_byte(random_num(15, 20));
write_byte(random_num(10, 20));
message_end();
remove_task(taskid);
return;
}
static health;
health = pev(ID_FBURN, pev_health);
if(health - FIRE_DAMAGE > 0)
fm_set_user_health(ID_FBURN, health - FIRE_DAMAGE);
else if(health - FIRE_DAMAGE <= 0)
fm_set_user_health(ID_FBURN, 1);
message_begin(MSG_PVS, SVC_TEMPENTITY, origin);
write_byte(TE_SPRITE);
write_coord(origin[0] + random_num(-5, 5));
write_coord(origin[1] + random_num(-5, 5));
write_coord(origin[2] + random_num(-10, 10));
write_short(g_flameSpr);
write_byte(random_num(5, 10));
write_byte(200);
message_end();
g_burning_duration[ID_FBURN]--;
}
public SmokeExplode(taskid)
{
new id = ID_SMOKE_EXP
if (!g_smoke[id])
{
remove_task(id+TASK_SMOKE_EXP)
return;
}
new Float:origin[3]
origin[0] = g_smoke_origin[id][0]
origin[1] = g_smoke_origin[id][1]
origin[2] = g_smoke_origin[id][2]
new flags = pev(id, pev_flags)
if (!((flags & FL_DUCKING) && (flags & FL_ONGROUND)))
origin[2] -= 36.0
Create_Smoke_Group(origin)
set_task(1.0, "SmokeExplode", id+TASK_SMOKE_EXP)
return;
}
public RemoveSmoke(taskid)
{
new id = ID_SMOKE
g_smoke[id] = 0
g_smoke_wait[id] = 1
set_task(SKILL_SMOKE_COOLDOWN, "RemoveWaitSmoke", id+TASK_WAIT_SMOKE)
}
public RemoveWaitSmoke(taskid)
{
new id = ID_WAIT_SMOKE
g_smoke_wait[id] = 0
set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false)
show_hudmessage(id, "");
}
Create_Smoke_Group(Float:position[3])
{
new Float:origin[12][3]
get_spherical_coord(position, 40.0, 0.0, 0.0, origin[0])
get_spherical_coord(position, 40.0, 90.0, 0.0, origin[1])
get_spherical_coord(position, 40.0, 180.0, 0.0, origin[2])
get_spherical_coord(position, 40.0, 270.0, 0.0, origin[3])
get_spherical_coord(position, 100.0, 0.0, 0.0, origin[4])
get_spherical_coord(position, 100.0, 45.0, 0.0, origin[5])
get_spherical_coord(position, 100.0, 90.0, 0.0, origin[6])
get_spherical_coord(position, 100.0, 135.0, 0.0, origin[7])
get_spherical_coord(position, 100.0, 180.0, 0.0, origin[8])
get_spherical_coord(position, 100.0, 225.0, 0.0, origin[9])
get_spherical_coord(position, 100.0, 270.0, 0.0, origin[10])
get_spherical_coord(position, 100.0, 315.0, 0.0, origin[11])
for (new i = 0; i < SKILL_SMOKE_SIZE; i++)
create_Smoke(origin[i], g_Smoke_Skill_Sprite, 100, 0)
}
create_Smoke(const Float:position[3], sprite_index, life, framerate)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_SMOKE)
engfunc(EngFunc_WriteCoord, position[0])
engfunc(EngFunc_WriteCoord, position[1])
engfunc(EngFunc_WriteCoord, position[2])
write_short(sprite_index)
write_byte(life)
write_byte(framerate)
message_end()
}
get_spherical_coord(const Float:ent_origin[3], Float:redius, Float:level_angle, Float:vertical_angle, Float:origin[3])
{
new Float:length
length = redius * floatcos(vertical_angle, degrees)
origin[0] = ent_origin[0] + length * floatcos(level_angle, degrees)
origin[1] = ent_origin[1] + length * floatsin(level_angle, degrees)
origin[2] = ent_origin[2] + redius * floatsin(vertical_angle, degrees)
}
stock Reset(iPlayer)
{
g_smoke[iPlayer] = 0;
g_smoke_wait[iPlayer] = 0;
remove_task(iPlayer + TASK_SMOKE);
remove_task(iPlayer + TASK_WAIT_SMOKE);
remove_task(iPlayer + TASK_SMOKE_EXP);
remove_task(iPlayer + TASK_BOT_USE_SKILL);
}
stock ChatColor(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!r", "^3")
replace_all(msg, 190, "!b", "^0")
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"), {0,0,0}, players[i])
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 837
- Kayıt: Çrş Şub 13, 2019 5:51 pm
- Server Ip/DNS: 213.238.173.144
- Clan İsmi: BLacK MasK Bas
Eklenti Hata
xman2030_NEM_SKILLSSSS.sma(1) : error 010: invalid function or declarationLoseBasgan yazdı: Cum Oca 01, 2021 8:50 amKod: Tümünü seç
#include <amxmodx> #include <engine> #include <fakemeta_util> #include <zombieplague> #define PLUGIN "Nemesis Skill" #define VERSION "1.0" #define AUTHOR "Universe" #define TASK_FBURN 100 #define ID_FBURN (taskid - TASK_FBURN) new bool:g_fRoundEnd, g_burning_duration[33], g_UseSkill[33] = 0, g_UseSkillCooldown[33], bool:g_SkillIsCooldown[33], bool:g_RoundEnd new g_smoke[33], g_smoke_wait[33], Float:g_smoke_origin[33][3] new g_flameSpr, g_smokeSpr, g_Sprite, g_Smoke_Skill_Sprite #define FIRE_DURATION 7 // #define FIRE_DAMAGE 1 // #define SKILL_COUNT 100 // #define SKILL_COOLDOWN 14.0 // #define SKILL_SMOKE_TIME 8.0 // #define SKILL_SMOKE_COOLDOWN 17.0 // #define SKILL_SMOKE_SIZE 4 // #define SKILL_WAVE_RADIUS 400.0 // new const skill_wave_color[3] = {255, 0, 0} // new const skill_sprite_wave[] = "sprites/xman2030/shockwave.spr" // new const skill_sprite_flame[] = "sprites/xman2030/flame.spr" // new const skill_sprite_smoke[] = "sprites/xman2030/black_smoke3.spr" // new const skill_sprite_smoke_cloud[] = "sprites/xman2030/smoke.spr" // new const skill_sound_smoke_cloud[][] = { "xman2030/smoke.wav" } // new const skill_sound_wave[][] = { "xman2030/slash.wav" } // enum (+= 100) { TASK_SMOKE = 2000, TASK_SMOKE_EXP, TASK_WAIT_SMOKE, TASK_BOT_USE_SKILL } #define ID_SMOKE (taskid - TASK_SMOKE) #define ID_SMOKE_EXP (taskid - TASK_SMOKE_EXP) #define ID_WAIT_SMOKE (taskid - TASK_WAIT_SMOKE) #define ID_BOT_USE_SKILL (taskid - TASK_BOT_USE_SKILL) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_forward(FM_CmdStart, "fw_CmdStart"); register_logevent("RoundEnd", 2, "1 = Round_End"); register_event("HLTV", "event_round_start", "a", "1 = 0", "2 = 0"); } public client_putinserver(iPlayer) { g_UseSkill[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; Reset(iPlayer); } public client_disconnected(iPlayer) { g_UseSkill[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; Reset(iPlayer); } public zp_user_infected_post(id, infector) { if(zp_get_user_nemesis(id)) { ChatColor(id, "!gAteş Bölgesi İçin BAS [E]"); ChatColor(id, "!gDuman Perdesi İçin BAS [R]"); } } public RoundEnd() { g_RoundEnd = true; for(new i = 1; i <= 32; i++) { if(zp_get_user_nemesis(i)) { g_UseSkill[i] = 0; g_SkillIsCooldown[i] = false; } } } public event_round_start() g_RoundEnd = false; public plugin_precache() { g_Sprite = precache_model(skill_sprite_wave); g_flameSpr = precache_model(skill_sprite_flame); g_smokeSpr = precache_model(skill_sprite_smoke); g_Smoke_Skill_Sprite = precache_model(skill_sprite_smoke_cloud); static i for(i = 0; i < sizeof skill_sound_smoke_cloud; i++) precache_sound(skill_sound_smoke_cloud[i]); for(i = 0; i < sizeof skill_sound_wave; i++) precache_sound(skill_sound_wave[i]); } public fw_CmdStart(iPlayer, UcHandle, Seed) { if(!is_user_alive(iPlayer)) return FMRES_IGNORED; if(zp_get_user_nemesis(iPlayer)) { static button, oldbutton; button = get_uc(UcHandle, UC_Buttons); oldbutton = pev(iPlayer, pev_oldbuttons); if((button & IN_USE) && !(oldbutton & IN_USE)) { g_UseSkillCooldown[iPlayer] = floatround(SKILL_COOLDOWN); if(g_UseSkill[iPlayer] < SKILL_COUNT) { set_task(1.0, "Skill_Cooldown", iPlayer, _, _, "a", g_UseSkillCooldown[iPlayer]); if(!g_SkillIsCooldown[iPlayer]) { g_SkillIsCooldown[iPlayer] = true; use_skill_wave(iPlayer); g_UseSkill[iPlayer]++; new count = SKILL_COUNT - g_UseSkill[iPlayer]; emit_sound(iPlayer, CHAN_STREAM, skill_sound_wave[random_num(0, sizeof skill_sound_wave - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM) set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, "", count); } else { set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, ""); } } else if(g_UseSkill[iPlayer] + 1 > SKILL_COUNT) { set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, "Limite GELDİN Artık Kullanamassın"); } } else if((button & IN_RELOAD) && !(oldbutton & IN_RELOAD)) { if (g_RoundEnd) return FMRES_IGNORED; if (zp_get_user_nemesis(iPlayer) && !g_smoke[iPlayer] && !g_smoke_wait[iPlayer]) { g_smoke[iPlayer] = 1 pev(iPlayer, pev_origin, g_smoke_origin[iPlayer]) set_task(0.1, "SmokeExplode", iPlayer + TASK_SMOKE_EXP) emit_sound(iPlayer, CHAN_STREAM, skill_sound_smoke_cloud[random_num(0, sizeof skill_sound_smoke_cloud - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM) set_task(SKILL_SMOKE_TIME, "RemoveSmoke", iPlayer + TASK_SMOKE) } } return FMRES_HANDLED; } return FMRES_HANDLED; } public Skill_Cooldown(iPlayer) { if(is_user_alive(iPlayer)) { g_UseSkillCooldown[iPlayer] = g_UseSkillCooldown[iPlayer] - 1; if(g_SkillIsCooldown[iPlayer] && (SKILL_COUNT - g_UseSkill[iPlayer] != 0)) { if(g_UseSkillCooldown[iPlayer] <= 0) { remove_task(iPlayer); g_UseSkillCooldown[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, ""); } } else remove_task(iPlayer); } } public use_skill_wave(iPlayer) { static Float:flOrigin[3], iVictim; entity_get_vector(iPlayer, EV_VEC_origin, flOrigin); iVictim = -1; engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, flOrigin, 0); write_byte(TE_BEAMCYLINDER); engfunc(EngFunc_WriteCoord, flOrigin[0]); engfunc(EngFunc_WriteCoord, flOrigin[1]); engfunc(EngFunc_WriteCoord, flOrigin[2]); engfunc(EngFunc_WriteCoord, flOrigin[0]); engfunc(EngFunc_WriteCoord, flOrigin[1]); engfunc(EngFunc_WriteCoord, flOrigin[2] + SKILL_WAVE_RADIUS); write_short(g_Sprite); write_byte(0); write_byte(0); write_byte(10); write_byte(25); write_byte(0); write_byte(skill_wave_color[0]); write_byte(skill_wave_color[1]); write_byte(skill_wave_color[2]); write_byte(200); write_byte(0); message_end(); while((iVictim = find_ent_in_sphere(iVictim, flOrigin, SKILL_WAVE_RADIUS)) != 0) { if(is_user_connected(iVictim) && is_user_alive(iVictim) && !zp_get_user_zombie(iVictim)) { if(!task_exists(iVictim + TASK_FBURN)) { g_burning_duration[iVictim] += FIRE_DURATION * 5; set_task(0.1, "BurningFlame", iVictim + TASK_FBURN, _, _, "b"); } } } } public BurningFlame(taskid) { static origin[3]; get_user_origin(ID_FBURN, origin); if (g_fRoundEnd || g_burning_duration[ID_FBURN] < 1 || zp_get_user_nemesis(ID_FBURN)) { message_begin(MSG_PVS, SVC_TEMPENTITY, origin); write_byte(TE_SMOKE); write_coord(origin[0]); write_coord(origin[1]); write_coord(origin[2] - 50); write_short(g_smokeSpr); write_byte(random_num(15, 20)); write_byte(random_num(10, 20)); message_end(); remove_task(taskid); return; } static health; health = pev(ID_FBURN, pev_health); if(health - FIRE_DAMAGE > 0) fm_set_user_health(ID_FBURN, health - FIRE_DAMAGE); else if(health - FIRE_DAMAGE <= 0) fm_set_user_health(ID_FBURN, 1); message_begin(MSG_PVS, SVC_TEMPENTITY, origin); write_byte(TE_SPRITE); write_coord(origin[0] + random_num(-5, 5)); write_coord(origin[1] + random_num(-5, 5)); write_coord(origin[2] + random_num(-10, 10)); write_short(g_flameSpr); write_byte(random_num(5, 10)); write_byte(200); message_end(); g_burning_duration[ID_FBURN]--; } public SmokeExplode(taskid) { new id = ID_SMOKE_EXP if (!g_smoke[id]) { remove_task(id+TASK_SMOKE_EXP) return; } new Float:origin[3] origin[0] = g_smoke_origin[id][0] origin[1] = g_smoke_origin[id][1] origin[2] = g_smoke_origin[id][2] new flags = pev(id, pev_flags) if (!((flags & FL_DUCKING) && (flags & FL_ONGROUND))) origin[2] -= 36.0 Create_Smoke_Group(origin) set_task(1.0, "SmokeExplode", id+TASK_SMOKE_EXP) return; } public RemoveSmoke(taskid) { new id = ID_SMOKE g_smoke[id] = 0 g_smoke_wait[id] = 1 set_task(SKILL_SMOKE_COOLDOWN, "RemoveWaitSmoke", id+TASK_WAIT_SMOKE) } public RemoveWaitSmoke(taskid) { new id = ID_WAIT_SMOKE g_smoke_wait[id] = 0 set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(id, ""); } Create_Smoke_Group(Float:position[3]) { new Float:origin[12][3] get_spherical_coord(position, 40.0, 0.0, 0.0, origin[0]) get_spherical_coord(position, 40.0, 90.0, 0.0, origin[1]) get_spherical_coord(position, 40.0, 180.0, 0.0, origin[2]) get_spherical_coord(position, 40.0, 270.0, 0.0, origin[3]) get_spherical_coord(position, 100.0, 0.0, 0.0, origin[4]) get_spherical_coord(position, 100.0, 45.0, 0.0, origin[5]) get_spherical_coord(position, 100.0, 90.0, 0.0, origin[6]) get_spherical_coord(position, 100.0, 135.0, 0.0, origin[7]) get_spherical_coord(position, 100.0, 180.0, 0.0, origin[8]) get_spherical_coord(position, 100.0, 225.0, 0.0, origin[9]) get_spherical_coord(position, 100.0, 270.0, 0.0, origin[10]) get_spherical_coord(position, 100.0, 315.0, 0.0, origin[11]) for (new i = 0; i < SKILL_SMOKE_SIZE; i++) create_Smoke(origin[i], g_Smoke_Skill_Sprite, 100, 0) } create_Smoke(const Float:position[3], sprite_index, life, framerate) { message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_SMOKE) engfunc(EngFunc_WriteCoord, position[0]) engfunc(EngFunc_WriteCoord, position[1]) engfunc(EngFunc_WriteCoord, position[2]) write_short(sprite_index) write_byte(life) write_byte(framerate) message_end() } get_spherical_coord(const Float:ent_origin[3], Float:redius, Float:level_angle, Float:vertical_angle, Float:origin[3]) { new Float:length length = redius * floatcos(vertical_angle, degrees) origin[0] = ent_origin[0] + length * floatcos(level_angle, degrees) origin[1] = ent_origin[1] + length * floatsin(level_angle, degrees) origin[2] = ent_origin[2] + redius * floatsin(vertical_angle, degrees) } stock Reset(iPlayer) { g_smoke[iPlayer] = 0; g_smoke_wait[iPlayer] = 0; remove_task(iPlayer + TASK_SMOKE); remove_task(iPlayer + TASK_WAIT_SMOKE); remove_task(iPlayer + TASK_SMOKE_EXP); remove_task(iPlayer + TASK_BOT_USE_SKILL); } stock ChatColor(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!r", "^3") replace_all(msg, 190, "!b", "^0") 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"), {0,0,0}, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
/home/araclar/compiler/include/engine.inc(799) : error 017: undefined symbol "kRenderFxNone"
2 Errors.
Could not locate output file xman2030_NEM_SKILLSSSS.amx (compile failed). BUNLAR çıktı şimdide
Link: | |
Linklerini gizle |
-
- Mesajlar: 1402
- Kayıt: Sal Oca 29, 2019 11:28 pm
- Clan İsmi: MoonGaming
Eklenti Hata
Doğru kurduğuna emin misin ? Ben derlediğimde sorunsuz derlendi.CycL0Ne yazdı: Cum Oca 01, 2021 8:53 amxman2030_NEM_SKILLSSSS.sma(1) : error 010: invalid function or declarationLoseBasgan yazdı: Cum Oca 01, 2021 8:50 amKod: Tümünü seç
#include <amxmodx> #include <engine> #include <fakemeta_util> #include <zombieplague> #define PLUGIN "Nemesis Skill" #define VERSION "1.0" #define AUTHOR "Universe" #define TASK_FBURN 100 #define ID_FBURN (taskid - TASK_FBURN) new bool:g_fRoundEnd, g_burning_duration[33], g_UseSkill[33] = 0, g_UseSkillCooldown[33], bool:g_SkillIsCooldown[33], bool:g_RoundEnd new g_smoke[33], g_smoke_wait[33], Float:g_smoke_origin[33][3] new g_flameSpr, g_smokeSpr, g_Sprite, g_Smoke_Skill_Sprite #define FIRE_DURATION 7 // #define FIRE_DAMAGE 1 // #define SKILL_COUNT 100 // #define SKILL_COOLDOWN 14.0 // #define SKILL_SMOKE_TIME 8.0 // #define SKILL_SMOKE_COOLDOWN 17.0 // #define SKILL_SMOKE_SIZE 4 // #define SKILL_WAVE_RADIUS 400.0 // new const skill_wave_color[3] = {255, 0, 0} // new const skill_sprite_wave[] = "sprites/xman2030/shockwave.spr" // new const skill_sprite_flame[] = "sprites/xman2030/flame.spr" // new const skill_sprite_smoke[] = "sprites/xman2030/black_smoke3.spr" // new const skill_sprite_smoke_cloud[] = "sprites/xman2030/smoke.spr" // new const skill_sound_smoke_cloud[][] = { "xman2030/smoke.wav" } // new const skill_sound_wave[][] = { "xman2030/slash.wav" } // enum (+= 100) { TASK_SMOKE = 2000, TASK_SMOKE_EXP, TASK_WAIT_SMOKE, TASK_BOT_USE_SKILL } #define ID_SMOKE (taskid - TASK_SMOKE) #define ID_SMOKE_EXP (taskid - TASK_SMOKE_EXP) #define ID_WAIT_SMOKE (taskid - TASK_WAIT_SMOKE) #define ID_BOT_USE_SKILL (taskid - TASK_BOT_USE_SKILL) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_forward(FM_CmdStart, "fw_CmdStart"); register_logevent("RoundEnd", 2, "1 = Round_End"); register_event("HLTV", "event_round_start", "a", "1 = 0", "2 = 0"); } public client_putinserver(iPlayer) { g_UseSkill[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; Reset(iPlayer); } public client_disconnected(iPlayer) { g_UseSkill[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; Reset(iPlayer); } public zp_user_infected_post(id, infector) { if(zp_get_user_nemesis(id)) { ChatColor(id, "!gAteş Bölgesi İçin BAS [E]"); ChatColor(id, "!gDuman Perdesi İçin BAS [R]"); } } public RoundEnd() { g_RoundEnd = true; for(new i = 1; i <= 32; i++) { if(zp_get_user_nemesis(i)) { g_UseSkill[i] = 0; g_SkillIsCooldown[i] = false; } } } public event_round_start() g_RoundEnd = false; public plugin_precache() { g_Sprite = precache_model(skill_sprite_wave); g_flameSpr = precache_model(skill_sprite_flame); g_smokeSpr = precache_model(skill_sprite_smoke); g_Smoke_Skill_Sprite = precache_model(skill_sprite_smoke_cloud); static i for(i = 0; i < sizeof skill_sound_smoke_cloud; i++) precache_sound(skill_sound_smoke_cloud[i]); for(i = 0; i < sizeof skill_sound_wave; i++) precache_sound(skill_sound_wave[i]); } public fw_CmdStart(iPlayer, UcHandle, Seed) { if(!is_user_alive(iPlayer)) return FMRES_IGNORED; if(zp_get_user_nemesis(iPlayer)) { static button, oldbutton; button = get_uc(UcHandle, UC_Buttons); oldbutton = pev(iPlayer, pev_oldbuttons); if((button & IN_USE) && !(oldbutton & IN_USE)) { g_UseSkillCooldown[iPlayer] = floatround(SKILL_COOLDOWN); if(g_UseSkill[iPlayer] < SKILL_COUNT) { set_task(1.0, "Skill_Cooldown", iPlayer, _, _, "a", g_UseSkillCooldown[iPlayer]); if(!g_SkillIsCooldown[iPlayer]) { g_SkillIsCooldown[iPlayer] = true; use_skill_wave(iPlayer); g_UseSkill[iPlayer]++; new count = SKILL_COUNT - g_UseSkill[iPlayer]; emit_sound(iPlayer, CHAN_STREAM, skill_sound_wave[random_num(0, sizeof skill_sound_wave - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM) set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, "", count); } else { set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, ""); } } else if(g_UseSkill[iPlayer] + 1 > SKILL_COUNT) { set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, "Limite GELDİN Artık Kullanamassın"); } } else if((button & IN_RELOAD) && !(oldbutton & IN_RELOAD)) { if (g_RoundEnd) return FMRES_IGNORED; if (zp_get_user_nemesis(iPlayer) && !g_smoke[iPlayer] && !g_smoke_wait[iPlayer]) { g_smoke[iPlayer] = 1 pev(iPlayer, pev_origin, g_smoke_origin[iPlayer]) set_task(0.1, "SmokeExplode", iPlayer + TASK_SMOKE_EXP) emit_sound(iPlayer, CHAN_STREAM, skill_sound_smoke_cloud[random_num(0, sizeof skill_sound_smoke_cloud - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM) set_task(SKILL_SMOKE_TIME, "RemoveSmoke", iPlayer + TASK_SMOKE) } } return FMRES_HANDLED; } return FMRES_HANDLED; } public Skill_Cooldown(iPlayer) { if(is_user_alive(iPlayer)) { g_UseSkillCooldown[iPlayer] = g_UseSkillCooldown[iPlayer] - 1; if(g_SkillIsCooldown[iPlayer] && (SKILL_COUNT - g_UseSkill[iPlayer] != 0)) { if(g_UseSkillCooldown[iPlayer] <= 0) { remove_task(iPlayer); g_UseSkillCooldown[iPlayer] = 0; g_SkillIsCooldown[iPlayer] = false; set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(iPlayer, ""); } } else remove_task(iPlayer); } } public use_skill_wave(iPlayer) { static Float:flOrigin[3], iVictim; entity_get_vector(iPlayer, EV_VEC_origin, flOrigin); iVictim = -1; engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, flOrigin, 0); write_byte(TE_BEAMCYLINDER); engfunc(EngFunc_WriteCoord, flOrigin[0]); engfunc(EngFunc_WriteCoord, flOrigin[1]); engfunc(EngFunc_WriteCoord, flOrigin[2]); engfunc(EngFunc_WriteCoord, flOrigin[0]); engfunc(EngFunc_WriteCoord, flOrigin[1]); engfunc(EngFunc_WriteCoord, flOrigin[2] + SKILL_WAVE_RADIUS); write_short(g_Sprite); write_byte(0); write_byte(0); write_byte(10); write_byte(25); write_byte(0); write_byte(skill_wave_color[0]); write_byte(skill_wave_color[1]); write_byte(skill_wave_color[2]); write_byte(200); write_byte(0); message_end(); while((iVictim = find_ent_in_sphere(iVictim, flOrigin, SKILL_WAVE_RADIUS)) != 0) { if(is_user_connected(iVictim) && is_user_alive(iVictim) && !zp_get_user_zombie(iVictim)) { if(!task_exists(iVictim + TASK_FBURN)) { g_burning_duration[iVictim] += FIRE_DURATION * 5; set_task(0.1, "BurningFlame", iVictim + TASK_FBURN, _, _, "b"); } } } } public BurningFlame(taskid) { static origin[3]; get_user_origin(ID_FBURN, origin); if (g_fRoundEnd || g_burning_duration[ID_FBURN] < 1 || zp_get_user_nemesis(ID_FBURN)) { message_begin(MSG_PVS, SVC_TEMPENTITY, origin); write_byte(TE_SMOKE); write_coord(origin[0]); write_coord(origin[1]); write_coord(origin[2] - 50); write_short(g_smokeSpr); write_byte(random_num(15, 20)); write_byte(random_num(10, 20)); message_end(); remove_task(taskid); return; } static health; health = pev(ID_FBURN, pev_health); if(health - FIRE_DAMAGE > 0) fm_set_user_health(ID_FBURN, health - FIRE_DAMAGE); else if(health - FIRE_DAMAGE <= 0) fm_set_user_health(ID_FBURN, 1); message_begin(MSG_PVS, SVC_TEMPENTITY, origin); write_byte(TE_SPRITE); write_coord(origin[0] + random_num(-5, 5)); write_coord(origin[1] + random_num(-5, 5)); write_coord(origin[2] + random_num(-10, 10)); write_short(g_flameSpr); write_byte(random_num(5, 10)); write_byte(200); message_end(); g_burning_duration[ID_FBURN]--; } public SmokeExplode(taskid) { new id = ID_SMOKE_EXP if (!g_smoke[id]) { remove_task(id+TASK_SMOKE_EXP) return; } new Float:origin[3] origin[0] = g_smoke_origin[id][0] origin[1] = g_smoke_origin[id][1] origin[2] = g_smoke_origin[id][2] new flags = pev(id, pev_flags) if (!((flags & FL_DUCKING) && (flags & FL_ONGROUND))) origin[2] -= 36.0 Create_Smoke_Group(origin) set_task(1.0, "SmokeExplode", id+TASK_SMOKE_EXP) return; } public RemoveSmoke(taskid) { new id = ID_SMOKE g_smoke[id] = 0 g_smoke_wait[id] = 1 set_task(SKILL_SMOKE_COOLDOWN, "RemoveWaitSmoke", id+TASK_WAIT_SMOKE) } public RemoveWaitSmoke(taskid) { new id = ID_WAIT_SMOKE g_smoke_wait[id] = 0 set_hudmessage(0, 255, 0, -1.0, 0.4, 0, 0.0, 1.0, 1.0, 1.0, false) show_hudmessage(id, ""); } Create_Smoke_Group(Float:position[3]) { new Float:origin[12][3] get_spherical_coord(position, 40.0, 0.0, 0.0, origin[0]) get_spherical_coord(position, 40.0, 90.0, 0.0, origin[1]) get_spherical_coord(position, 40.0, 180.0, 0.0, origin[2]) get_spherical_coord(position, 40.0, 270.0, 0.0, origin[3]) get_spherical_coord(position, 100.0, 0.0, 0.0, origin[4]) get_spherical_coord(position, 100.0, 45.0, 0.0, origin[5]) get_spherical_coord(position, 100.0, 90.0, 0.0, origin[6]) get_spherical_coord(position, 100.0, 135.0, 0.0, origin[7]) get_spherical_coord(position, 100.0, 180.0, 0.0, origin[8]) get_spherical_coord(position, 100.0, 225.0, 0.0, origin[9]) get_spherical_coord(position, 100.0, 270.0, 0.0, origin[10]) get_spherical_coord(position, 100.0, 315.0, 0.0, origin[11]) for (new i = 0; i < SKILL_SMOKE_SIZE; i++) create_Smoke(origin[i], g_Smoke_Skill_Sprite, 100, 0) } create_Smoke(const Float:position[3], sprite_index, life, framerate) { message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_SMOKE) engfunc(EngFunc_WriteCoord, position[0]) engfunc(EngFunc_WriteCoord, position[1]) engfunc(EngFunc_WriteCoord, position[2]) write_short(sprite_index) write_byte(life) write_byte(framerate) message_end() } get_spherical_coord(const Float:ent_origin[3], Float:redius, Float:level_angle, Float:vertical_angle, Float:origin[3]) { new Float:length length = redius * floatcos(vertical_angle, degrees) origin[0] = ent_origin[0] + length * floatcos(level_angle, degrees) origin[1] = ent_origin[1] + length * floatsin(level_angle, degrees) origin[2] = ent_origin[2] + redius * floatsin(vertical_angle, degrees) } stock Reset(iPlayer) { g_smoke[iPlayer] = 0; g_smoke_wait[iPlayer] = 0; remove_task(iPlayer + TASK_SMOKE); remove_task(iPlayer + TASK_WAIT_SMOKE); remove_task(iPlayer + TASK_SMOKE_EXP); remove_task(iPlayer + TASK_BOT_USE_SKILL); } stock ChatColor(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!r", "^3") replace_all(msg, 190, "!b", "^0") 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"), {0,0,0}, players[i]) write_byte(players[i]); write_string(msg); message_end(); } } } }
/home/araclar/compiler/include/engine.inc(799) : error 017: undefined symbol "kRenderFxNone"
2 Errors.
Could not locate output file xman2030_NEM_SKILLSSSS.amx (compile failed). BUNLAR çıktı şimdide
Link: | |
Linklerini gizle |
-
Konu Sahibi - Mesajlar: 837
- Kayıt: Çrş Şub 13, 2019 5:51 pm
- Server Ip/DNS: 213.238.173.144
- Clan İsmi: BLacK MasK Bas
Eklenti Hata
yaptığınız eklenti bu değil miydi bunu yüklüyorum
nemesisskill.sma(1) : error 010: invalid function or declaration
/home/araclar/compiler/include/engine.inc(799) : error 017: undefined symbol "kRenderFxNone"
2 Errors.
Could not locate output file nemesisskill.amx (compile failed).
bunlar çıkıyor
nemesisskill.sma(1) : error 010: invalid function or declaration
/home/araclar/compiler/include/engine.inc(799) : error 017: undefined symbol "kRenderFxNone"
2 Errors.
Could not locate output file nemesisskill.amx (compile failed).
bunlar çıkıyor
Bu mesaja eklenen dosyaları görüntülemek için gerekli izinlere sahip değilsiniz.
Link: | |
Linklerini gizle |
-
- Mesajlar: 1402
- Kayıt: Sal Oca 29, 2019 11:28 pm
- Clan İsmi: MoonGaming
Eklenti Hata
Attığınız eklentide 1. satırdaCycL0Ne yazdı: Cum Oca 01, 2021 9:23 am yaptığınız eklenti bu değil miydi bunu yüklüyorum
nemesisskill.sma(1) : error 010: invalid function or declaration
/home/araclar/compiler/include/engine.inc(799) : error 017: undefined symbol "kRenderFxNone"
2 Errors.
Could not locate output file nemesisskill.amx (compile failed).
bunlar çıkıyor
Kod: Tümünü seç

Link: | |
Linklerini gizle |
-
- Mesajlar: 2574
- Kayıt: Çrş Ağu 23, 2017 9:17 pm