Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Saving the objects data
- public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
- Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
- Float:fRotX, Float:fRotY, Float:fRotZ,
- Float:fScaleX, Float:fScaleY, Float:fScaleZ )
- {
- ao[ao_model] = modelid;
- ao[ao_bone] = boneid;
- ao[ao_x] = fOffsetX;
- ao[ao_y] = fOffsetY;
- ao[ao_z] = fOffsetZ;
- ao[ao_rx] = fRotX;
- ao[ao_ry] = fRotY;
- ao[ao_rz] = fRotZ;
- if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
- {
- ao[ao_model2] = modelid;
- ao[ao_bone2] = boneid;
- ao[ao_x2] = fOffsetX;
- ao[ao_y2] = fOffsetY;
- ao[ao_z2] = fOffsetZ;
- ao[ao_rx2] = fRotX;
- ao[ao_ry2] = fRotY;
- ao[ao_rz2] = fRotZ;
- }
- if(IsPlayerAttachedObjectSlotUsed(playerid, 1))
- {
- ao[ao_model3] = modelid;
- ao[ao_bone3] = boneid;
- ao[ao_x3] = fOffsetX;
- ao[ao_y3] = fOffsetY;
- ao[ao_z3] = fOffsetZ;
- ao[ao_rx3] = fRotX;
- ao[ao_ry3] = fRotY;
- ao[ao_rz3] = fRotZ;
- }
- SendClientMessage(playerid, 0xff000ff, "sex");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement