SA-MP Forums Archive
[AJUDA]SetPlayerAttachedObject - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]SetPlayerAttachedObject (/showthread.php?tid=272058)



[AJUDA]SetPlayerAttachedObject - Leeo_Perez - 26.07.2011

Код:
new COLETE;//no topo do gm
Код:
if(strcmp("/objeto", cmdtext, true) == 0)
	 {
	    SetPlayerAttachedObject( playerid, COLETE, 373, 1, 0.275895, -0.007553, -0.176713, 73.816665, 25.155405, 34.880043, 1.025760, 1.000000, 1.233744 );
	    return 1;
	 }

	 if(strcmp("/tirarobjeto", cmdtext, true) == 0)
	 {
	    DestroyPlayerObject(playerid,373);
	    return 1;
	 }
Gente , o que tem de errado? eu compilo , nao dб bug mas vou testar o comando , nгo cria o objeto, o que pode ser? alguem me ajuda? '-'(sou noob pakarai nem liga xD)


Re: [AJUDA]SetPlayerAttachedObject - Macintosh - 26.07.2011

PHP код:
(playeridindexmodelidboneFloat:fOffsetXFloat:fOffsetYFloat:fOffsetZFloat:fRotXFloat:fRotYFloat:fRotZFloat:fScaleXFloat:fScaleYFloat:fScaleZ
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject

pawn Код:
RemovePlayerAttachedObject(playerid,0); // 0 Mude para o slot que deseja remover.



Re: [AJUDA]SetPlayerAttachedObject - Leeo_Perez - 26.07.2011

obrigado , funcionou xD


Re: [AJUDA]SetPlayerAttachedObject - Macintosh - 26.07.2011

^^