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 here
http://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(playerid, params[])
{
//conditions
ShowPlayerDialog(playerid, DIALOG1, DIALOG_STYLE_LIST, "Costumes", "Witch Hat\nPumpkin Face\nPut others like this");
}
//Under OnDialogResponse
{
if(dialogid == DIALOG1)
{
switch(listitem)
{
case 0: SetPlayerAttachedObject(playerid, 5, 19528, 2, 0.167425, -0.006185, -0.004779, 0.612963, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000);//make sure to change the offsets and modelid for different objects
case 1: SetPlayerAttachedObject(playerid, 5, 19320, 2, 0.167425, -0.006185, -0.004779, 0.612963, 0.000000, 0.000000, 1.000000, 1.000000, 1.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!