SA-MP Forums Archive
*-Little Help-* - 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: *-Little Help-* (/showthread.php?tid=298780)



*-Little Help-* - -BadGirl- - 22.11.2011

Hola:
There is A Object Holding Command And In One Command 2 Objects Added But When i type cmd /omg
Attaching only 1 object Why 2nd not Attaching

Код:
if (strcmp("/omg", cmdtext, true, 10) == 0)    {
	SetPlayerAttachedObject( playerid, 0, 362, 4, 0.000000, 0.000000, 0.000000, 9.439945, 25.443254, 354.971679, 2.000000, 2.000000, 2.020517 ); // minigun - 12345
    SetPlayerAttachedObject( playerid, 0, 362, 13, 0.000000, 0.000000, 0.000000, 144.902191, 27.411682, 0.000000, 2.000000, 2.000000, 2.020517 ); // minigun - 12342
	SendClientMessage(playerid, 0xE60000FF, "the object have been successfully attached");
	return 1;
    }



Re: *-Little Help-* - Jordiee - 22.11.2011

no utiliza SetPlayerAttachedObject
EDIT: mi mal, yo no uso SetPlayerAttachedObject


Re: *-Little Help-* - Qur - 22.11.2011

Dunno if its helpes but:..

pawn Код:
if (strcmp("/omg", cmdtext, true, 10) == 0)    {
    SetPlayerAttachedObject(playerid, 0, 1609, 4);
    SetPlayerAttachedObject(playerid, 1, 1609, 13);
    SendClientMessage(playerid, 0xE60000FF, "the object have been successfully attached");
    return 1;
    }
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject