Mam pytanko jeszcze. Bo próbuję zmniejszyć dmg fireballa i nie mogę znaleźć. Szukalem w publicu i nie wiedzę/// 
public item_fireball(id)
{
new xd = floatround(halflife_time()-wait1[id])
new czas = 3-xd
if (halflife_time()-wait1[id] <= 3)
{
client_print(id, print_center, "Za %d sek mozesz uzyc mocy!", czas)
return PLUGIN_CONTINUE;
}
if (fired[id] < 1)
{
hudmsg(id,2.0,"Naladuj Kule")
return PLUGIN_HANDLED
}
if (fired[id] > 0 && is_user_alive(id) == 1)
{
fired[id] --
new Float:vOrigin[3]
new fEntity
entity_get_vector(id,EV_VEC_origin, vOrigin)
fEntity = create_entity("info_target")
entity_set_model(fEntity, "models/rpgrocket.mdl")
entity_set_origin(fEntity, vOrigin)
entity_set_int(fEntity,EV_INT_effects,64)
entity_set_string(fEntity,EV_SZ_classname,"fireball")
entity_set_int(fEntity, EV_INT_solid, SOLID_BBOX)
entity_set_int(fEntity,EV_INT_movetype,5)
entity_set_edict(fEntity,EV_ENT_owner,id)
//Send forward
new Float:fl_iNewVelocity[3]
VelocityByAim(id, 500, fl_iNewVelocity)
entity_set_vector(fEntity, EV_VEC_velocity, fl_iNewVelocity)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(22)
write_short(fEntity)
write_short(sprite_beam)
write_byte(45)
write_byte(4)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(25)
message_end()
wait1[id]=floatround(halflife_time())
}
return PLUGIN_HANDLED
}
Bo ten kod odpowiadają za ilość kul + następna kula po dodaniu 50 inty(tak jak u Czarodzieja)?
if (player_class[id] == Lajt || player_class[id] == Xardas)fired[id] = 2 + player_intelligence[id]/100
else if(player_b_fireball[id]>0) fired[id] = 2
else fired[id] = 0
maxfired[id] = fired[id]
2 FireBalle na start + 1 co 100 inteligencji.
DMG Fireballa zmienisz w funkcji:
public Explode_Origin(id,Float:origin[3],dist)
{
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(3)
write_coord(floatround(origin[0]))
write_coord(floatround(origin[1]))
write_coord(floatround(origin[2]))
write_short(sprite_boom)
write_byte(50)
write_byte(15)
write_byte(0)
message_end()
new Players[32], playerCount, a
get_players(Players, playerCount, "ah")
new Float:fDamage = 75.0+player_intelligence[id]/3 //TUTAJ ZMIENIASZ DMG FIREBALLA
for (new i=0; i<playerCount; i++)
{
a = Players[i]
new Float:aOrigin[3]
pev(a,pev_origin,aOrigin)
if (get_user_team(id) != get_user_team(a) && get_distance_f(aOrigin,origin) < dist+0.0)
{
TakeDamage(a, id, fDamage, DMG_ENERGYBEAM, "fireba");
}
}
}