public KeyChanges(){ new keys, updown, leftright; new string[256]; for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { if(IsPlayerConnected(playerid)) { GetPlayerKeys(playerid, keys, updown, leftright); new Float:ox, Float:oy, Float:oz; GetObjectPos(labda, ox, oy, oz); new Float:px, Float:py, Float:pz; new Float:angle; GetPlayerFacingAngle(playerid, angle); if(keys == KEY_FIRE || keys == KEY_FIRE ) { if(PlayerToPoint(2.5,playerid,ox,oy,oz)) { GetPlayerPos(playerid, px, py, pz); MoveObject(labda,px,py,2.414398,8.0); PlayerPlaySound(playerid,1130,0.0,0.0,0.0); ApplyAnimation(playerid,\"FIGHT_D\",\"FightD_1\",4.1,0,1,1,0,0); } } else if(keys == KEY_FIRE + KEY_SPRINT || keys == KEY_FIRE + KEY_SPRINT ) { if(PlayerToPoint(2.5,playerid,ox,oy,oz)) { GetPlayerPos(playayerid,1130,0.0,0.0,0.0); ApplyAnimation(plaerid, px, py, pz); MoveObject(labda,px,py,2.414398,10.0); PlayerPlaySound(plyerid,\"FIGHT_D\",\"FightD_1\",4.1,0,1,1,0,0); } } }return 1;}