16.06.2011, 23:28
Quote:
hello,
can you make this, flip the car when you press H?? i make a new stunt server with my friend. thats nice when you can this make. [SRY for my bad english, Iam german] |
pawn Code:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
if ( IsPlayerInAnyVehicle( playerid ) )
{
if ( newkeys == KEY_CROUCH )
{
new Float: zAng;
GetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng );
SetVehicleZAngle( GetPlayerVehicleID( playerid ), zAng );
GameTextForPlayer( playerid, "~r~Vehicle Flipped!", 3000, 3 );
}
}
return 1;
}