30.08.2013, 22:42
I have toy editor 0.3e in my server, after i buy a toy it placed randomaly on the character body, then i edit it to my custom offset for example on the head, then after i saved it i see it how i edited it but other people don't and by the way after deattach the toy/object it not saves the edit what means that it isn't save my editing.
i need a code to make it save the coordiantes/positions i edited.
I have edited the toy editor from coordiantes to arrows 0.3e
Picture:

Codes:
i need a code to make it save the coordiantes/positions i edited.
I have edited the toy editor from coordiantes to arrows 0.3e
Picture:

Codes:
Код:
if((dialogid == EDITTOYS2)) { if(response) { if(listitem == 0) { ShowPlayerDialog(playerid, EDITTOYSBONE, DIALOG_STYLE_LIST, "Select a Bone", "Spine\nHead\nLeft upper arm\nRight upper arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot\nRight calf\nLeft calf\nLeft forearm\nRight forearm\nLeft clavicle\nRight clavicle\nNeck\nJaw", "Select", "Cancel"); } else if(listitem == 1) { { for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++) { if(IsPlayerAttachedObjectSlotUsed(playerid, i)) EditAttachedObject(playerid, i); } SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Hold {A42AD1}LSHIFT {F2F299}to move your camera, press escape to cancel."); return 1;
Код:
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], 1, 1, 1); new stringg[512]; format(stringg, sizeof(stringg), "%sBone (%s)\n", stringg, HoldingBones[PlayerToyInfo[playerid][slotselection[playerid]][ptBone]]); format(stringg, sizeof(stringg), "%sOffset\n", stringg,(PlayerToyInfo[playerid][slotselection[playerid]][ptPosX]*100));