#1

how to change this toy editor


to this


please help me!

Код:
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");
}
THANK YOU VERY VERY VERY VERY MUCH AT YOUR HELPSSSSS
Reply
#2

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
Reply
#3

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
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
I cant make my own gamemode right now.

On topic: Thanks but where do i put those codes? how do i attach it to my codes?
Reply
#4

Thanks for the link to how to make an 0.3e toy editor, it really helps me.
Reply
#5

Quote:
Originally Posted by SupaFool
Посмотреть сообщение
Thanks for the link to how to make an 0.3e toy editor, it really helps me.
How do you make your toy system into 0.3e toy editor?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)