stock ShowEditMenu(playerid) { if(IsPlayerAttachedObjectSlotUsed(playerid, slotselection[playerid])) { RemovePlayerAttachedObject(playerid, slotselection[playerid]); } 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[512]; format(stringg, sizeof(stringg), "%sBone (%s)\n", stringg, HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]); format(stringg, sizeof(stringg), "%sOffset X (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosX]*100)); format(stringg, sizeof(stringg), "%sOffset Y (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosY]*100)); format(stringg, sizeof(stringg), "%sOffset Z (%f)\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosZ]*100)); format(stringg, sizeof(stringg), "%sRotation X (%f)\n", stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotX]); format(stringg, sizeof(stringg), "%sRotation Y (%f)\n", stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotY]); format(stringg, sizeof(stringg), "%sRotation Z (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptRotZ]); format(stringg, sizeof(stringg), "%sScale X (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleX]); format(stringg, sizeof(stringg), "%sScale Y (%f)\n",stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleY]); format(stringg, sizeof(stringg), "%sScale Z (%f)\n" ,stringg, PlayerToyInfo[playerid][slotselection[playerid]][ptScaleZ]); ShowPlayerDialog(playerid, EDITTOYS2, DIALOG_STYLE_LIST, "Toy Menu: Edit", stringg, "Select", "Cancel"); }
Look, I really do think you should just stop using edited gamemodes and /try/ and make your own, you're posting 20+ scripting help requests every day asking how to edit these gamemodes..
On topic: https://sampwiki.blast.hk/wiki/EditObject |
Thanks for the link to how to make an 0.3e toy editor, it really helps me.
|