How to do this Command?Please Help
#10

Quote:
Originally Posted by Kostas'
Посмотреть сообщение
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)
pawn Код:
CMD:hold(playerid, o[])
{
    for ( new i = 0; i < 5; i++ ) {
        if ( IsPlayerAttachedObjectSlotUsed( playerid, i ) ) {
            RemovePlayerAttachedObject( playerid, i );
        }
    }
    SetPlayerAttachedObject( playerid, 0, 18645, 2, 0.017478, 0.051500, 0.003912, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    SetPlayerAttachedObject( playerid, 1, 18690, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    SetPlayerAttachedObject( playerid, 2, 18716, 2, -2.979508, 0.306475, -0.388553, 285.055511, 90.860740, 171.179550, 1.780549, 0.912008, 1.208514 );
    return 1;
}
Why are you using this

PHP код:
SetPlayerAttachedObject(playeridindexmodelidboneFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:fRotZFloat:fScaleXFloat:fScaleYFloat:fScaleZ); 
instead of this

PHP код:
SetPlayerAttachedObject(playeridindexmodelbone); 
Reply


Messages In This Thread
How to do this Command?Please Help - by hitman% - 19.11.2011, 09:22
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:26
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:28
Re: How to do this Command?Please Help - by Smally - 19.11.2011, 09:29
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:34
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:38
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:39
Re: How to do this Command?Please Help - by hitman% - 19.11.2011, 09:47
Re: How to do this Command?Please Help - by Kostas' - 19.11.2011, 09:50
Re: How to do this Command?Please Help - by =WoR=G4M3Ov3r - 19.11.2011, 09:53

Forum Jump:


Users browsing this thread: 1 Guest(s)