Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stock ShowEditMenu(playerid)
- {
- if(IsPlayerAttachedObjectSlotUsed(playerid, slotselection[playerid]))
- {
- RemovePlayerAttachedObject(playerid, slotselection[playerid]);
- }
- if(PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] == 0) {
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY] = 1.0;
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ] = 1.0;
- }
- SetPlayerAttachedObject(playerid, slotselection[playerid], PlayerToyInfo[playerid][slotselection[playerid]][ptModelID],
- PlayerToyInfo[playerid][slotselection[playerid]][ptBone], PlayerToyInfo[playerid][slotselection[playerid]][ptPosX],
- PlayerToyInfo[playerid][slotselection[playerid]][ptPosY], PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ],
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotX], PlayerToyInfo[playerid][slotselection[playerid]][ptRotY],
- PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX],
- PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY], PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]);
- new stringg[856];
- format(stringg, sizeof(stringg), "Bone (%s)\nPosition", HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]);
- ShowPlayerDialogEx(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement