Unalmamban megcsináltam neked
Ha nem mûködne szólj!
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)// 2-es és + gomb
{
if(IsPlayerInAnyVehicle(playerid))
{
{
RepairVehicle(GetPlayerVehicleID(playerid));
}
}
}
if(newkeys == KEY_ANALOG_RIGHT)// num 6
{
if(IsPlayerInAnyVehicle(playerid))
{
{
new Float:X, Float:Y, Float: Z, Float:Angle;
GetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
GetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z+2);
SetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
}
}
}
return 1;
}