#include <a_samp>new Float:X, Float:Y, Float:Z, Float:A;public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){if(newkeys == KEY_FIRE){GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 2.0, Y * 2.0, Z * 2.0);}if(newkeys == KEY_CROUCH){ GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);SetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z + 1);}if(newkeys == KEY_SUBMISSION){RepairVehicle(GetPlayerVehicleID(playerid));}if(newkeys == KEY_LOOK_LEFT){ GetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);GetVehicleZAngle(GetPlayerVehicleID(playerid), A);SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z+1);SetVehicleZAngle(GetPlayerVehicleID(playerid), A);}return 1;}
#include <a_samp>#define PRESSED(%0) \\(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))new Float:X, Float:Y, Float:Z, Float:A;public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){if(PRESSED(KEY_FIRE)){GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 2.0, Y * 2.0, Z * 2.0);}if(PRESSED(KEY_CROUCH)){ GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);SetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z + 1);}if(PRESSED(KEY_SUBMISSION)){RepairVehicle(GetPlayerVehicleID(playerid));}if(PRESSED(KEY_LOOK_LEFT)){ GetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);GetVehicleZAngle(GetPlayerVehicleID(playerid), A);SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z+1);SetVehicleZAngle(GetPlayerVehicleID(playerid), A);}return 1;}
...még mindig olyan......
hát nem tudom mi baj van.mert a van, hogy kicsit nyomva kell tartani, vagy nyomkodni, és csak akkor mûködik egyszer...lehet, hogy a pawnommal van a baj. tudnál küldeni egy amx fájlt?