#include <amxmodx>
#include <hamsandwich>
#include <fakemeta>
#include <fun>
#include <zombie_plague_advance>
#define ZP_PREFIX "^x01"
new sheild[33], wounds[33], bool:g_wounded[33], g_nums[33], boot[33], deadrun[33], using_deadrun[33],
is_in_cd_deadrun[33], dam[33], blade[33], using_blade[33], is_in_cd_blade[33], steps[33], deadly[33],
using_deadly[33], is_in_cd_ds[33], ghost[33], using_ghost[33], is_in_cd_ghost[33]
new skilluriactive[33]
new g_MsgSync4
new g_msg[33][512]
new bool:impulsactiv
new Float:g_woundspeed[33], Float:g_ospeed[33]
public plugin_init()
{
register_plugin("Skilluri", "1.0", "EDUTz")
register_clcmd("skilluri", "menu_skill")
register_clcmd("say /skilluri", "menu_skill")
register_clcmd("drun", "Skill2")
register_clcmd("blade", "Skill3")
register_clcmd("deadly", "Skill1")
register_clcmd("ghost", "Skill4")
RegisterHam(Ham_TakeDamage, "player", "fw_takedamage")
RegisterHam(Ham_TraceAttack, "player", "fw_trace")
register_event("HLTV", "event_newround", "a", "1=0", "2=0")
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
}
public plugin_precache()
{
g_MsgSync4 = CreateHudSyncObj()
}
public menu_skill(id)
{
if(!is_user_alive(id)) return
if(zp_get_user_zombie(id)) ShowMenuZM(id)
else ShowMenuHM(id)
}
public ShowMenuZM(id)
{
new menu = menu_create("Skilluri Zombi", "zm_skills");
menu_additem(menu, "Carapace - \y15 Credite", "", 0); // case 0
menu_additem(menu, "Muscatura - \y25 Credite", "", 0); // case 0
menu_additem(menu, "Impuls Electromagnetic - \y35 Credite", "", 0); // case 0
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
public ShowMenuHM(id)
{
new menu = menu_create("Skilluri Oameni", "hm_skills");
menu_additem(menu, "Bocanci Antigravitationali - \y15 Credite", "", 0); // case 0
menu_additem(menu, "Sprint - \y20 Credite", "", 0); // case 0
menu_additem(menu, "Damage - \y40 Credite", "", 0); // case 0
menu_additem(menu, "Cutit - \y25 Credite", "", 0); // case 0
menu_additem(menu, "Pasi Tacuti - \y30 Credite", "", 0); // case 0
menu_additem(menu, "Headshot - \y35 Credite", "", 0); // case 0
menu_additem(menu, "Invizibilitate - \y65 Credite", "", 0); // case 0
menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
menu_display(id, menu, 0);
return PLUGIN_HANDLED;
}
public hm_skills(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}
if(!is_user_alive(id) || zp_get_user_zombie(id))
{
menu_cancel(id);
return PLUGIN_HANDLED
}
new command[6], name[64], access, callback;
menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
switch(item)
{
case 0:
{
if(zp_get_user_ammo_packs(id) < 4)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 4)
set_user_gravity(id, get_user_gravity(id)/2)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Bocanci Antigravitationali=-^x01, acum ai gravitatia^x03 0.%.fx^x01 ", get_user_gravity(id)*10);
skilluriactive[id]++
boot[id] = true
}
}
case 1:
{
if(zp_get_user_ammo_packs(id) < 4)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 4)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Sprint=-^x01, pentru a printa apasa ^x03F1^x01");
client_cmd(id, "bind F1 drun")
skilluriactive[id]++
deadrun[id] = true
}
}
case 2:
{
if(zp_get_user_ammo_packs(id) < 4)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 4)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Damage=-^x01, ai damage crescut cu ^x0310%%^x01");
skilluriactive[id]++
dam[id] = true
}
}
case 3:
{
if(zp_get_user_ammo_packs(id) < 4)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 4)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Cutit=-^x01, damage crescut la cutit cu ^x031000%%^x01 apasand F2");
skilluriactive[id]++
client_cmd(id, "bind F2 blade")
blade[id] = true
}
}
case 4:
{
if(zp_get_user_ammo_packs(id) < 2)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 2)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Pasi Tacuti=-^x01, nu te va mai auzi nimeni mergand.");
skilluriactive[id]++
steps[id] = true
set_user_footsteps(id, 1)
}
}
case 5:
{
if(zp_get_user_ammo_packs(id) < 6)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 6)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Headshot=-^x01, toate loviturile sunt considerate Headshot apasand ^x04F3^x01");
skilluriactive[id]++
deadly[id] = true
client_cmd(id, "bind F3 deadly")
}
}
case 6:
{
if(zp_get_user_ammo_packs(id) < 15)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 15)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Invizibilitate=-^x01, devii invizibil apasand apasand ^x04F4^x01");
skilluriactive[id]++
ghost[id] = true
client_cmd(id, "bind F4 ghost")
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public zm_skills(id, menu, item)
{
if(item == MENU_EXIT)
{
menu_cancel(id);
return PLUGIN_HANDLED;
}
if(!is_user_alive(id) || !zp_get_user_zombie(id))
{
menu_cancel(id);
return PLUGIN_HANDLED
}
new command[6], name[64], access, callback;
menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
switch(item)
{
case 0:
{
if(zp_get_user_ammo_packs(id) < 8)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 8)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Carapace=-^x01, vei primi damage mai putin cu 50%%");
skilluriactive[id]++
sheild[id] = true
}
}
case 1:
{
if(zp_get_user_ammo_packs(id) < 6)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 6)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Muscatura=-^x01, incetinesti oamenii si iei din viata un timp.");
skilluriactive[id]++
wounds[id] = true
}
}
case 2:
{
if(zp_get_user_ammo_packs(id) < 15)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Nu ai destule ^x04credite^x01 !!")
return PLUGIN_HANDLED
}
else
{
if(impulsactiv)
{
zp_colored_print(id, "^x04[SKILLURI]^x01 un impul este deja ^x04activ^x01 !!")
return PLUGIN_HANDLED
}
else
{
zp_set_user_ammo_packs(id, zp_get_user_ammo_packs(id) - 15)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai selectat ^x04-=Impuls Electromagnetic=-^x01, vizibilitatea oamenilor scade !");
impulsactiv = true
set_task(random_float(5.0,7.0),"doemp",id)
set_hudmessage(255, 10, 10, -1.0, -1.0, 2, 2.0, 5.0)
show_hudmessage(0 , "A fost activat impulsul electromagnetic ^nSistemele electronice sunt ^ndezactivate pentru 30 de secunde")
zp_colored_print(id, "^x04[SKILLURI]^x01 A fost activat ^x04-=Impuls Electromagnetic=-^x01, toate electronicele nu mai functioneaza !");
}
}
}
}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
public event_newround()
{
for(new i = 1; i <= get_maxplayers(); i++)
{
reset_vars(i)
}
}
public reset_vars(id)
{
if(!is_user_connected(id))
return
sheild[id] = false
boot[id] = false
wounds[id] = false
g_wounded[id] = false
g_nums[id] = 0
impulsactiv = false
skilluriactive[id] = 0
deadrun[id] = false
using_deadrun[id] = false
is_in_cd_deadrun[id] = false
dam[id] = false
using_blade[id] = false
is_in_cd_blade[id] = false
blade[id] = false
steps[id] = false
deadly[id] = false
using_deadly[id] = false
is_in_cd_ds[id] = false
ghost[id] = false
using_ghost[id] = false
is_in_cd_ghost[id] = false
set_user_footsteps(id, 0)
client_cmd(id, "hud_draw 1")
}
public client_putinserver(id)
{
set_task(1.0, "hudskilluri", id+45634, _, _, "b")
}
public hudskilluri(id)
{
id -= 45634
if (!is_user_alive(id))
{
return;
}
static pos
pos = 0
pos += formatex(g_msg[id][pos], 511-pos, "[SKILLURI: %i]", skilluriactive[id])
if(sheild[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nCarapace")
if(wounds[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nMuscatura")
if(impulsactiv && zp_get_user_zombie(id))
pos += formatex(g_msg[id][pos], 511-pos, "^nImpuls Electromagnetic")
if(boot[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nBocanci Antigravitationali")
if(deadrun[id])
{
if(is_in_cd_deadrun[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nSprint[F1][INACTIV]")
else
pos += formatex(g_msg[id][pos], 511-pos, "^nSprint[F1][ACTIV]")
}
if(dam[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nDamage")
if(blade[id])
{
if(is_in_cd_blade[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nCutit[F2][INACTIV]")
else
pos += formatex(g_msg[id][pos], 511-pos, "^nCutit[F2][ACTIV]")
}
if(steps[id])
{
pos += formatex(g_msg[id][pos], 511-pos, "^nPasi Tacuti")
}
if(deadly[id])
{
if(is_in_cd_ds[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nHeadshot[F3][INACTIV]")
else
pos += formatex(g_msg[id][pos], 511-pos, "^nHeadshot[F3][ACTIV]")
}
if(ghost[id])
{
if(is_in_cd_ghost[id])
pos += formatex(g_msg[id][pos], 511-pos, "^nInvizibilitate[F4][INACTIV]")
else
pos += formatex(g_msg[id][pos], 511-pos, "^nInvizibilitate[F4][ACTIV]")
}
set_hudmessage(0, 58, 150, 0.02, 0.2, 0, 6.0, 1.1, 0.0, 0.0, -1);
ShowSyncHudMsg(id,g_MsgSync4, "%s", g_msg[id])
}
public client_disconnect(id)
{
reset_vars(id)
}
public zp_user_infected_post(id)
{
reset_vars(id)
}
public zp_user_humanized_post(id)
{
reset_vars(id)
}
public client_connect(id)
{
if(!is_user_connected(id))
return
reset_vars(id)
}
public fw_takedamage(victim, inflictor, attacker, Float:damage, dmgtype)
{
if (victim == attacker || !is_user_connected(attacker) || !is_user_connected(victim))
return HAM_IGNORED;
if(zp_get_user_zombie(victim) && !zp_get_user_zombie(attacker) && sheild[victim])
{
SetHamParamFloat(4, damage/2)
}
if(!zp_get_user_zombie(victim) && zp_get_user_zombie(attacker) && wounds[attacker] && !g_wounded[victim])
{
g_wounded[victim] = true
g_woundspeed[victim] = get_user_maxspeed(victim)
set_user_rendering(victim, kRenderFxGlowShell, 200, 0, 0, kRenderNormal, 16)
set_user_maxspeed(victim, get_user_maxspeed(victim) - 100.0)
wound(victim, attacker)
}
if(zp_get_user_zombie(victim) && !zp_get_user_zombie(attacker) && dam[attacker])
{
SetHamParamFloat(4, damage*1.1)
}
if(zp_get_user_zombie(victim) && !zp_get_user_zombie(attacker) && using_blade[attacker] && get_user_weapon(attacker) == CSW_KNIFE)
{
SetHamParamFloat(4, damage*10.0)
}
}
stock zp_colored_print(target, const message[], any:...)
{
static buffer[512], msg_SayText = 0
if( !msg_SayText ) msg_SayText = get_user_msgid("SayText")
// Send to everyone
if (!target)
{
static player, maxplayers, argscount
maxplayers = get_maxplayers()
argscount = numargs()
for (player = 1; player <= maxplayers; player++)
{
// Not connected
if (!is_user_connected(player))
continue;
// Remember changed arguments
static arg_index, changed_args[20], changedcount // [20] = max LANG_PLAYER occurencies
changedcount = 0
// Replace LANG_PLAYER with player id
for (arg_index = 2; arg_index < argscount; arg_index++)
{
if (getarg(arg_index) == LANG_PLAYER && arg_index + 1 < argscount)
{
// Check if next param string is a registered language translation
static lang_key[64], arg_subindex
arg_subindex = 0
while ((lang_key[arg_subindex] = getarg(arg_index + 1, arg_subindex++))) { /* keep looping */ }
if (GetLangTransKey(lang_key) != TransKey_Bad)
{
setarg(arg_index, 0, player)
changed_args[changedcount++] = arg_index
arg_index++ // skip next argument since we know it's a translation key
}
}
}
// Format message for player (+add ZP prefix)
vformat(buffer, charsmax(buffer), message, 3)
format(buffer, charsmax(buffer), "%s%s", ZP_PREFIX, buffer)
// Send it
message_begin(MSG_ONE_UNRELIABLE, msg_SayText, _, player)
write_byte(player)
write_string(buffer)
message_end()
// Replace back player id's with LANG_PLAYER
for (arg_index = 0; arg_index < changedcount; arg_index++)
setarg(changed_args[arg_index], 0, LANG_PLAYER)
}
}
// Send to specific target
else
{
// Format message for player (+add ZP prefix)
vformat(buffer, charsmax(buffer), message, 3)
format(buffer, charsmax(buffer), "%s%s", ZP_PREFIX, buffer)
// Send it
message_begin(MSG_ONE, msg_SayText, _, target)
write_byte(target)
write_string(buffer)
message_end()
}
}
public wound(id, attacker)
{
if(!is_user_alive(id))
{
g_wounded[id] = false
return
}
if(g_nums[id] > 10 || zp_get_user_zombie(id) || !g_wounded[id])
{
stopwound(id)
return
}
g_nums[id]++
ExecuteHam(Ham_TakeDamage, id, attacker, attacker, 10.0, DMG_SLASH)
set_task(1.0, "wound", id)
}
public stopwound(id)
{
if(!is_user_alive(id))
{
g_nums[id] = 0
g_wounded[id] = false
return
}
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 255)
set_user_maxspeed(id, g_woundspeed[id])
g_wounded[id] = false
g_nums[id] = 0
}
public doemp(id)
{
set_hudmessage(255, 10, 10, -1.0, -1.0, 2, 6.0, 12.0)
show_hudmessage(0 , "A fost activat impulsul electromagnetic ^nSistemele electronice sunt ^ndezactivate pentru 30 de secunde")
zp_colored_print(id, "^x04[SKILLURI]^x01 A fost activat ^x04-=Impuls Electromagnetic=-^x01, toate electronicele nu mai functioneaza !");
server_cmd("zp_ltm 0")
for(new i = 1; i < get_maxplayers(); i++)
{
if(is_user_alive(i) && !zp_get_user_zombie(i))
{
client_cmd(i, "hud_draw 0")
ScreenFade(i, 30.0, 50, 50, 180, 180)
}
}
client_cmd(0, "spk sound/ambience/alien_hollow.wav");
client_cmd(0, "spk sound/fvox/hev_shutdown.wav");
set_task(30.0, "emp_end");
}
public emp_end()
{
server_cmd("zp_ltm 1")
impulsactiv = false
for(new i = 1; i < get_maxplayers(); i++)
{
if(is_user_connected(i) && !zp_get_user_zombie(i))
{
client_cmd(i, "hud_draw 1")
}
}
set_hudmessage(25, 255, 25, -1.0, -1.0, 2, 6.0, 12.0)
show_hudmessage(0 , "Sistemele Electronice au fost reactivate!")
client_cmd(0, "spk sound/fvox/bell.wav")
client_cmd(0, "spk sound/fvox/online.wav")
}
stock ScreenFade(plr, Float:fDuration, red, green, blue, alpha)
{
new i = plr ? plr : get_maxplayers();
if( !i )
{
return 0;
}
message_begin(plr ? MSG_ONE : MSG_ALL, get_user_msgid( "ScreenFade"), {0, 0, 0}, plr);
write_short(floatround(4096.0 * fDuration, floatround_round));
write_short(floatround(4096.0 * fDuration, floatround_round));
write_short(4096);
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(alpha);
message_end();
return 1;
}
public Skill2(id)
{
if(zp_get_user_zombie(id) || !is_user_alive(id))
return
if(!deadrun[id])
return;
if(using_deadrun[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 deja folosesti Sprintul !!")
return
}
if(is_in_cd_deadrun[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Sprint se reface o data la 30 de secunde !!")
return
}
using_deadrun[id] = true
is_in_cd_deadrun[id] = true
checkdead(id)
zp_colored_print(id, "^x04[SKILLURI]^x01 Ai sprint pentru 5 secunde !!")
set_task(30.0, "removedeadcd",id)
}
public checkdead(id)
{
if(!using_deadrun[id] || !is_user_alive(id))
return;
g_ospeed[id] = get_user_maxspeed(id)
ScreenFade(id, 5.0, 100, 150, 0, 180)
set_task(5.0, "removedead", id)
}
public removedead(id)
{
using_deadrun[id] = false
if(!is_user_alive(id)) return
set_user_maxspeed(id, g_ospeed[id])
zp_colored_print(id, "^x04[SKILLURI]^x01 Sprint terminat !!")
}
public removedeadcd(id)
{
is_in_cd_deadrun[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Acum poti folosi Sprintul !!")
}
public fw_PlayerPreThink(id)
{
if (!is_user_alive(id))
return;
if(using_deadrun[id] && !g_wounded[id])
{
set_pev(id, pev_maxspeed, 0.0)
}
if(g_wounded[id])
{
set_user_maxspeed(id, get_user_maxspeed(id) - 100.0)
}
}
public Skill3(id)
{
if(zp_get_user_zombie(id))
{
return
}
if(!blade[id])
return;
if(using_blade[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Cutit este deja in folosire !!")
return
}
if(is_in_cd_blade[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Cutit este in cooldown!!")
return
}
using_blade[id] = true
is_in_cd_blade[id] = true
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Cutit se va termina in 30 de secunde !!")
set_task(30.0, "removeblade",id)
set_task(100.0, "removebladecd",id)
}
public removeblade(id)
{
using_blade[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Cutit epuizat, asteptati cooldown !!")
}
public removebladecd(id)
{
is_in_cd_blade[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Cutit gata de folosire !!")
}
public Skill1(id)
{
if(zp_get_user_zombie(id))
{
return
}
if(!deadly[id])
return;
if(using_deadly[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Hedshot deja in folosire !!")
return
}
if(is_in_cd_ds[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Headshot in cooldown!!")
return
}
using_deadly[id] = true
is_in_cd_ds[id] = true
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Headshot se termina in 25 de secunde !!")
set_task(25.0, "removeds",id)
set_task(100.0, "removedscd",id)
}
public removeds(id)
{
using_deadly[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Headshot e epuizat, asteapta cooldown-ul!!")
}
public removedscd(id)
{
is_in_cd_ds[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Headshot gata de folosinta !!")
}
public fw_trace(victim, attacker, Float:damage, direction[3],traceresult, dmgbits)
{
if(using_deadly[attacker])
{
set_tr2(traceresult, TR_iHitgroup, HIT_HEAD)
}
}
public Skill4(id)
{
if(zp_get_user_zombie(id))
{
return
}
if(!ghost[id])
return;
if(using_ghost[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Invizibilitate deja in folosinta !!")
return
}
if(is_in_cd_ghost[id])
{
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Invizibilitate este in cooldown!!")
return
}
using_ghost[id] = true
is_in_cd_ghost[id] = true
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Invizibilitate se va termina in 30 de secunde!!")
ScreenFade(id, 30.0, 50, 50, 180, 180)
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 0)
set_task(30.0, "removeghost",id)
set_task(100.0, "removeghostcd",id)
}
public removeghost(id)
{
using_ghost[id] = false
if(is_user_alive(id))
{
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha, 255)
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul invizibilitate terminat !!")
}
}
public removeghostcd(id)
{
is_in_cd_ghost[id] = false
zp_colored_print(id, "^x04[SKILLURI]^x01 Skillul Invizibilitate gata de folosire !!")
}