Someone can pick this X,Y,Z attobejct pls? -
pedrotvr - 30.11.2015
I tryed use FS, but I could not make it right
Someone PLEASE can take this X,Y,Z for me?
Код:
CMD:box(playerid) { // Next time, use map editor to get coordinates.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
AttachObjectToPlayer(box1, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
return 1;
}
Re: Someone can pick this X,Y,Z attobejct pls? -
Denying - 30.11.2015
Just mess around with the values.
Re: Someone can pick this X,Y,Z attobejct pls? -
Threshold - 30.11.2015
Well the object will be in line with the player's body... so X and Y offset should be 0. Then you just need to mess around with the Z offset.
I'd also recommend you take a look at SetPlayerAttachedObject.
Re: Someone can pick this X,Y,Z attobejct pls? -
Sew_Sumi - 30.11.2015
Did anyone make that ingame object editor easy to use, or is everyone holding that close to their chests or something?
Actually, isn't it an FS in the standard SA-MP package?
Re: Someone can pick this X,Y,Z attobejct pls? -
J0sh... - 30.11.2015
You could do this:
PHP код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
new tmp[128];
format(tmp, 128, "Pos of object: %f, %f, %f | ROT: %f,%f,%f" fX, fY, fZ, fRotX, fRotY, fRotZ);
SendClientMessage(playerid, -1, tmp);
return 1;
}
CMD:box(playerid) { // Next time, use map editor to get coordinates.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
AttachObjectToPlayer(box1, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
EditObject(playerid, box1);
return 1;
}
Re: Someone can pick this X,Y,Z attobejct pls? -
pedrotvr - 01.12.2015
Quote:
Originally Posted by Jamester
You could do this:
PHP код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
new tmp[128];
format(tmp, 128, "Pos of object: %f, %f, %f | ROT: %f,%f,%f" fX, fY, fZ, fRotX, fRotY, fRotZ);
SendClientMessage(playerid, -1, tmp);
return 1;
}
CMD:box(playerid) { // Next time, use map editor to get coordinates.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
AttachObjectToPlayer(box1, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
EditObject(playerid, box1);
return 1;
}
|
I was fixed, but ty bro +rep