Merge branch 'vehicle-component' of https://github.com/meCloudy/sf-cnr into vehicle-component

This commit is contained in:
Cloudy 2019-06-12 07:57:21 +03:00
commit bedc326201

View File

@ -643,13 +643,13 @@ public OnUpdateVehicleComponents( playerid )
SetPVarFloat( playerid, "component_pos_z", GetPVarFloat( playerid, "component_pos_z" ) + VALUE ); SetPVarFloat( playerid, "component_pos_z", GetPVarFloat( playerid, "component_pos_z" ) + VALUE );
case COMPONENT_EDIT_TYPE_RX: case COMPONENT_EDIT_TYPE_RX:
SetPVarFloat( playerid, "component_rot_x", GetPVarFloat( playerid, "component_rot_x" ) + ( ( VALUE * 360) / 100 ) * 10 ); SetPVarFloat( playerid, "component_rot_x", GetPVarFloat( playerid, "component_rot_x" ) + ( ( VALUE * 360 ) / 100 ) * 10 );
case COMPONENT_EDIT_TYPE_RY: case COMPONENT_EDIT_TYPE_RY:
SetPVarFloat( playerid, "component_rot_y", GetPVarFloat( playerid, "component_rot_y" ) + ( ( VALUE * 360) / 100 ) * 10 ); SetPVarFloat( playerid, "component_rot_y", GetPVarFloat( playerid, "component_rot_y" ) + ( ( VALUE * 360 ) / 100 ) * 10 );
case COMPONENT_EDIT_TYPE_RZ: case COMPONENT_EDIT_TYPE_RZ:
SetPVarFloat( playerid, "component_rot_z", GetPVarFloat( playerid, "component_rot_z" ) + ( ( VALUE * 360) / 100 ) * 10 ); SetPVarFloat( playerid, "component_rot_z", GetPVarFloat( playerid, "component_rot_z" ) + ( ( VALUE * 360 ) / 100 ) * 10 );
default: default:
return EndPlayerEditComponent( playerid, v, slotid ); return EndPlayerEditComponent( playerid, v, slotid );
@ -885,4 +885,4 @@ CMD:rz( playerid, params[ ] )
SetPVarInt( playerid, "component_edit_type", COMPONENT_EDIT_TYPE_RZ ); SetPVarInt( playerid, "component_edit_type", COMPONENT_EDIT_TYPE_RZ );
return SendClientMessageFormatted( playerid, -1, ""COL_GREY"[GARAGE]"COL_WHITE" You're now editing the Z rotation of the component." ); return SendClientMessageFormatted( playerid, -1, ""COL_GREY"[GARAGE]"COL_WHITE" You're now editing the Z rotation of the component." );
} }