PHP Code:
//#CLIENTSIDE
//up
if (playerdir=0){
this.x=playerx-1;
this.y=playery-2;
}
//left
if (playerdir=1){
this.x=playerx-2;
this.y=playery;
}
//down
if (playerdir=2){
this.x=playerx+1;
this.y=playery+2;
}
//right
if (playerdir=3){
this.x=playerx+2;
this.y=playery;
}
if (playerenters) {
toweapons Test;
}
if (weaponfired){
setani dg_iron-sword-attack,;
freezeplayer 0.0383;
sleep 0.1;
}
if (actionprojectile) {
if(strequals(#p(index),PARAMEQUALS)) {
hurt 3;
}
}
hmm for some reason it dont hurt the player whats wrong with it please correct me in the script