Attachobject - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Attachobject (
/showthread.php?tid=273438)
Attachobject -
RatHack - 01.08.2011
Hello
I want to know why this command doesn't attach a object to my player:
pawn Код:
if(!strcmp("/cow", cmdtext, true))
{
AttachObjectToPlayer(16442, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
}
return 0;
}
So it should attach a cow to me and i can move with it, but it doesnt attach it
Re: Attachobject -
sleepysnowflake - 01.08.2011
pawn Код:
if(!strcmp("/cow", cmdtext, true))
{
AttachObjectToPlayer(16442, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
return 1;
}
Respuesta: Attachobject -
RatHack - 01.08.2011
And for delete it?
EDIT: It doesn't add nothing to the player...
Re: Attachobject -
Mr.1337 - 01.08.2011
Код:
Try to make it as ZCMD, Maybe will work:
CMD:cow(playerid, params[]) {
AttachObjectToPlayer(16442, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
}
return 1;
}
Respuesta: Attachobject -
RatHack - 01.08.2011
It worked, but do u know how to put the camera more far? for see the cow good?
Re: Respuesta: Attachobject -
Mr.1337 - 01.08.2011
Quote:
Originally Posted by RatHack
It worked, but do u know how to put the camera more far? for see the cow good?
|
What do you mean?
Respuesta: Attachobject -
RatHack - 01.08.2011
The skin is soo near my screen, i want it more far for see the Cow correctly
Re: Respuesta: Attachobject -
Kingunit - 01.08.2011
Quote:
Originally Posted by RatHack
The skin is soo near my screen, i want it more far for see the Cow correctly
|
Press V ingame, or that's not enough?
Re: Attachobject -
Mr.1337 - 01.08.2011
You mean the cow coords?
Respuesta: Attachobject -
RatHack - 01.08.2011
Mr.1337, i mean to put the camera position more far, like pressing V. V doesn't work because my skin is inside the cow..