SA-MP Forums Archive
toy - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: toy (/showthread.php?tid=506176)



toy - ChristianIvann09 - 12.04.2014

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


Re: toy - Flake. - 12.04.2014

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


Re: toy - ChristianIvann09 - 12.04.2014

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?


Re: toy - SupaFool - 12.04.2014

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


Re: toy - ChristianIvann09 - 12.04.2014

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?