17.11.2016, 22:04
Write this in onplayerkeystatechange.
P.S IT WILL WORKS ON KEY Y, CUZ I DONT KNOW F-s ID.
PHP код:
if(newkeys == 65536)
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetPlayerPos(playerid, x, y, z+3);
}
}