SA-MP Forums Archive
Player Objects - 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: Player Objects (/showthread.php?tid=294935)



Player Objects - [GTA]Leon[RPD] - 04.11.2011

How i Attach Objects to Player When a player type /1886 and This object attach to player Can its possibale
If yes So Help Me


Re: Player Objects - jiwan - 04.11.2011

try this >> https://sampwiki.blast.hk/wiki/AttachObjectToPlayer


Re: Player Objects - [GTA]Leon[RPD] - 04.11.2011

i didn't understand make a attach player object command like when player type 18646
That Object attach To player Make It !!!


Re: Player Objects - jiwan - 04.11.2011

like this >>



pawn Код:
if (strcmp("/18646", cmdtext, true, 10) == 0)
    {
        AttachObjectToPlayer( 18646, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
        SendClientMessage(playerid, 0xE60000FF, "the object have been successfully attached");
        return 1;
    }



Re: Player Objects - [GTA]Leon[RPD] - 04.11.2011

this object not attaching ? to player
Only showing that text the object have been successfully attached" but not attaching object to player
Help


Re: Player Objects - [GTA]Leon[RPD] - 04.11.2011

Sorry For double Post
But Help Me:


Re: Player Objects - CyNiC - 04.11.2011

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

You can use Hold Studio to edit them.

https://sampforum.blast.hk/showthread.php?tid=182317


Re: Player Objects - [GTA]Leon[RPD] - 04.11.2011

HI Its donw i made Objects and I makea command for attaching object
This Is Command and its working object attaching
Quote:

if (strcmp("/mombo", cmdtext, true, 10) == 0) { SetPlayerAttachedObject( playerid, 0, 362, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); SendClientMessage(playerid, 0xE60000FF, "the object have been successfully attached"); return 1; }

But How i get it deactive it means when player type /mombo it attach to player and when player type /mombooff object remover from player
Help Expert's Plz


Re: Player Objects - SuperViper - 04.11.2011

pawn Код:
RemovePlayerAttachedObject(playerid, SLOT);



Re: Player Objects - [GTA]Leon[RPD] - 04.11.2011

Add where on That Command ?