11.10.2011, 06:52
Thank you, Elorreli
It works perfect
Also, the flip part is on my gamemode, not on this FS, my fault.
This is the flip
It works perfect
Also, the flip part is on my gamemode, not on this FS, my fault.
This is the flip
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(newkeys &= 2)
{
new Float:ZAngle,Float:X,Float:Y,Float:Z,vehicleid;
vehicleid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehicleid,X,Y,Z);
GetVehicleZAngle(vehicleid,ZAngle);
SetVehicleZAngle(vehicleid,ZAngle);
SetVehiclePos(vehicleid,X,Y,Z+2);
}
}
return 1;
}