2 pieces of help needed with object shit. - 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: 2 pieces of help needed with object shit. (
/showthread.php?tid=347530)
2 pieces of help needed with object shit. -
jueix - 02.06.2012
Okay guy's i am making a customizable house system where you can buy furniture and shit and place it any where in game i all ready released a test beta verison which is v1 and working on v2.
The help i need first is knowing what these basicly mean, rx,ry,rz basicly im trying to make it so they can turn a chair / bed / piece of furniture they have left and right incase its facing the wrong angle.
The second piece of help i need is with allowing players to move their piece of furniture only but i don't no how to tell if its a players piece of furniture im thinking of it being like this maybe.
Код:
enum
Finfo
{
Chair1
};
COMMAND:chairleft(playerid, params[]) // or CMD:mycommand(playerid, params[])
{
if(fInfo[playerid][HASCHAIR] == 1 && fInfo[playerid][Pc] == 1 && IsPlayerInRangeOfPoint(playerid, 1.0, CX,CY,CZ))
{
MoveObject(chair1,CX,CY,CZ,5,0,0)
return 1;
}
Well i hope i explained my idea well enough and things and hope you can help me thanks.
Re: 2 pieces of help needed with object shit. -
ikey07 - 02.06.2012
Use EditObject function and lock Z, I mean if Z coords has been changed doesnt let object to be saved, it would be alot easier