SA-MP Forums Archive
Attaching Object just right - 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: Attaching Object just right (/showthread.php?tid=381971)



Attaching Object just right - trapstar2020 - 01.10.2012

pawn Код:
forward BriefCase();
public BriefCase()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if( PlayerInfo[i][pCash] > 29999 )
            {
                SetPlayerAttachedObject(i, 1, 1210, 6, 6,0.3,0.1, 0, 0, -90, 1.000000, 1.000000, 1.000000 );
            }
            else if( PlayerInfo[i][pCash] < 30000 )
            {
                RemovePlayerAttachedObject(i, 1);
            }
         }
    }
    return 1;
}
everything iz okay but the object isnt attach propery can someone give me the correct code for attaching it
and removing i was wondering if itz the index or something but if someone can fix much appreciate


Re: Attaching Object just right - mamorunl - 01.10.2012

use proper spelling/grammar and the right coordinates. The last one is a process of trial and error.


Re: Attaching Object just right - trapstar2020 - 01.10.2012

idc how i type all i need it the correct
coords 4 the object all this small is unwanted


Re: Attaching Object just right - Danyal - 01.10.2012

try these
Quote:

x= 0.4301
y= 0.0549
z= -0.2900
rotz= 76.0400




Re: Attaching Object just right - trapstar2020 - 01.10.2012

SetPlayerAttachedObject(i, 1, 1210, 6, 6,0.3,0.1, 0, 0, -90, 1.000000, 1.000000, 1.000000 );
anyone with a more direct setplayerattachedobject