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



SetPlayerAttachedObject - xXGabyGabiXx - 18.10.2017

Who can help me with these SetPlayerAttachedObject as in this video.
VIDEO:https://www.youtube.com/watch?v=XPoGUhFr78c [ MINUTES: 0:57 ]


Example of costume: SetPlayerAttachedObject(playerid, 5, 19528, 2, 0.167425, -0.006185, -0.004779, 0.612963, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);

COSTUMES HALLOWEEN ! PLS
Thanks!


Re: SetPlayerAttachedObject - xXGabyGabiXx - 18.10.2017

Help?


Re: SetPlayerAttachedObject - Zeth - 18.10.2017

YOu can get the model ids herehttp://dev.prineside.com/en/gtasa_samp_model_id/ and that pumpkin's model is 19320.

PHP код:
//these are just for explaining, dont copy same
CMD:costumes(playeridparams[])
{
    
//conditions
    
ShowPlayerDialog(playeridDIALOG1DIALOG_STYLE_LIST"Costumes""Witch Hat\nPumpkin Face\nPut others like this");
}
//Under OnDialogResponse
{
    if(
dialogid == DIALOG1)
    {
        switch(
listitem)
        {
        case 
0SetPlayerAttachedObject(playerid51952820.167425, -0.006185, -0.0047790.6129630.0000000.0000001.0000001.0000001.000000);//make sure to change the offsets and modelid for different objects
        
case 1SetPlayerAttachedObject(playerid51932020.167425, -0.006185, -0.0047790.6129630.0000000.0000001.0000001.0000001.000000);
        }
        
//put others in this same manner
    
}




Re: SetPlayerAttachedObject - xXGabyGabiXx - 19.10.2017

Thanks!


Give me more costumes pls.


Re: SetPlayerAttachedObject - Kane - 19.10.2017

Why can't you find it yourself? He linked you the site.

It'd be so much easier if you actually tried to do it on your own.


Re: SetPlayerAttachedObject - xXGabyGabiXx - 19.10.2017

brother i have a hold program, but it does not work z, y, x ..


Re: SetPlayerAttachedObject - Zeth - 19.10.2017

use this to get offsets https://sampforum.blast.hk/showthread.php?tid=416138


Re: SetPlayerAttachedObject - xXGabyGabiXx - 19.10.2017

I solved, thanks for help!