View Single Post
RollerBlades
Senior Member
Join Date: Feb 2011
Location: Sweden
Old 06-01-2011 , 15:57   Re: Keydown not working?
Reply With Quote #4

yes i know you made a task in sh_keydown with it saying fire_attack but this itself: fire_attack(id) should be there like this:

case SH_KEYDOWN:
{

new
Float:delayTime = get_pcvar_float(pCvarMultiShot)
if (
delayTime >= 0.1 )
{

set_task
(delayTime, "fire_attack", id, _, _, "b")
}

fire_attack(id)

if (
gPlayerInCooldown[id] )
{
sh_sound_deny(id)
return
}

gUsingLaser = True
}

well you're only using sh_extra_dmg once in the code so i guess you should know the location of that place since it's your ripped code

and about floats and intergers you dont have to delete them if you ripped the code if your a lazy ass. it just makes the code longer and its unecessary

Last edited by RollerBlades; 06-01-2011 at 16:04.
RollerBlades is offline