Raised This Month: $ Target: $400
 0% 

I need help -Diablo mod - Fireball


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
niewidzialny
New Member
Join Date: Oct 2009
Old 10-25-2009 , 16:14   I need help -Diablo mod - Fireball
Reply With Quote #1

Hi.
I have my serwer with amx&diablomod and i would like to change the number of throwing fireball (Mage) to numer : 5

It is the script :


Php code:
public item_fireball(id)
{
if (fired[id] > 0)
{
hudmsg(id,2.0,"Ognistej kuli mozesz uzyc raz na runde!")
return PLUGIN_HANDLED
}

if (fired[id] == 0 && player_b_fireball[id] > 0 && is_user_alive(id) == 1)
{
fired[id] = 1
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,"fi reball")
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()
}
return PLUGIN_HANDLED
}

Please help me as fast as u can.

Last edited by niewidzialny; 10-26-2009 at 10:48.
niewidzialny is offline
izzle
Senior Member
Join Date: Aug 2009
Old 10-25-2009 , 21:44   Re: I need help -Diablo mod - Fireball
Reply With Quote #2

use php code tags
izzle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode