What is this Object ??
#1

[ame]http://www.youtube.com/watch?v=kxJ7zEHFNSE[/ame]

What is this object it like a smoke and how to put it into hand ??

Can anybody tell me. Thanks you guy
Reply
#2

https://sampwiki.blast.hk/wiki/Samp_objects

Not sure, but i think its 18715.

- Camacorn
Reply
#3

So how to put on the player body

I know that must use SetPlayerAttachedObject but I didn't understand

fOffsetX (optional) X axis offset for the object position.
fOffsetY (optional) Y axis offset for the object position.
fOffsetZ (optional) Z axis offset for the object position.
fRotX (optional) X axis rotation of the object.
fRotY (optional) Y axis rotation of the object.
fRotZ (optional) Z axis rotation of the object.
fScaleX (optional) X axis scale of the object.
fScaley (optional) Y axis scale of the object.
fScalez (optional) Z axis scale of the object.

how to find it and what does it do ??
Reply
#4

Awesome and cool
Reply
#5

I found it. It is 18693 but when i put in it is not the exactly position on hand

how to fix it

SetPlayerAttachedObject( playerid, 0, 18693, 5);
SetPlayerAttachedObject( playerid, 1, 18693, 6);
Reply
#6

Quote:
Originally Posted by xinix000
Посмотреть сообщение
I found it. It is 18693 but when i put in it is not the exactly position on hand

how to fix it

SetPlayerAttachedObject( playerid, 0, 18693, 5);
SetPlayerAttachedObject( playerid, 1, 18693, 6);
Top of your script:
PHP код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9) 
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) 
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1) 
Then use

PHP код:
SetPlayerAttachedObject(playerid1186935); 
PHP код:
SetPlayerAttachedObject(playerid1186936); 
https://sampforum.blast.hk/showthread.php?tid=281448

To fix the the position exactly into the hand, change the index..
Reply
#7

pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)  
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)  
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
I already define it but it still same not exactly position
Reply
#8

Create a script to edit it (or if one exists, download one)
Reply
#9

Quote:
Originally Posted by xinix000
Посмотреть сообщение
pawn Код:
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)  
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)  
#define IsPlayerHoldingObject(%1) IsPlayerAttachedObjectSlotUsed(%1,MAX_PLAYER_ATTACHED_OBJECTS-1)
I already define it but it still same not exactly position
You've picked the bone correctly, just change the index to 3.

PHP код:
SetPlayerAttachedObject(playerid3186936); 
Reply
#10

i change index into 3 but it still not on the hand so i make a commad to adjust it
pawn Код:
if(strcmp(cmd, "/co", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /co [index] [object] [body] [X] [Y] [Z] [X1] [Y1] [Z1]");
                return 1;
            }
            new index;
            new para1;
            new para2;
            new Float:x;
            new Float:y;
            new Float:z;
            new Float:x1;
            new Float:y1;
            new Float:z1;
            index = strval(tmp);
            tmp = strtok(cmdtext, idx);
            para1 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            para2 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            x = strval(tmp);
            tmp = strtok(cmdtext, idx);
            y = strval(tmp);
            tmp = strtok(cmdtext, idx);
            z = strval(tmp);
            tmp = strtok(cmdtext, idx);
            x1 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            y1 = strval(tmp);
            tmp = strtok(cmdtext, idx);
            z1 = strval(tmp);
            if (PlayerInfo[playerid][pLCAdmin] >= 1337)
            {
                    if(IsPlayerAttachedObjectSlotUsed(playerid,index)) RemovePlayerAttachedObject(playerid,index);
                    SetPlayerAttachedObject(playerid, index, para1, para2, x, y, z, x1, y1, z1, 1.0, 1.0, 1.0);
                   
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
            }
        }
        return 1;
    }
but it can't use float in the command do you know how to fix it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)