SetPlayerAttachedObject
#1

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!
Reply
#2

Help?
Reply
#3

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
    
}

Reply
#4

Thanks!


Give me more costumes pls.
Reply
#5

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.
Reply
#6

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

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

I solved, thanks for help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)