hello,
you may know me as Dragona2002 but this just an new acc
well ok...
question
im working on a script / sniper rifle
but i want to make an shoot bullet effect on the snipex,snipey when i fire the weapon.... i just have problems with Dx and Dy x.x
heres the script (any commands are welcome

yeah i know im not the bestest scripter

)
NPC Code:
// NPC made by Fîêrçê Ðãr/< Rãzõr Ãçãrî
if (created) {
toweapons sniper;
}
if (isweapon) {
if (weaponfired) {
timoeut=0.1;
set client.sniping;
disabledefmovement;
snipey=playery;
snipex=playerx;
showimg 1223,dn_snipe.gif,snipex,snipey;
timeout=0.1;
}
if (timeout) {
if (client.sniping) {
if (keydown(2)) {
snipey+=0.5;
}
if (keydown(0)) {
snipey-=0.5;
}
if (keydown(1)) {
snipex-=0.5;
}
if (keydown(3)) {
snipex+=0.5;
}
if (keydown(5)) {
shoot playerx+.5,playery,0,,,1,0,fireball_effect,;
putexplosion 1,snipex,snipey;
putexplosion2 3,1,snipex,snipey;
}
}
showimg 1223,dn_snipe.gif,snipex,snipey;
setfocus snipex,snipey;
timeout=0.05;
}
if (keydown(6)) {
timeout=0;
snipey=playery;
snipex=playerx;
unset client.sniping;
hideimg 1223;
enabledefmovement;
resetfocus;
}
if (snipex<playerx&&snipey<playery) {
playerdir=0;
}
if (snipex>playerx&&snipey>playery) {
playerdir=2;
}
if (snipex<playerx&&snipey>playery) {
playerdir=1;
}
if (snipex>playerx&&snipey<playery) {
playerdir=3;
}
}