Attach Object - 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: Attach Object (
/showthread.php?tid=179343)
Attach Object -
HyperZ - 26.09.2010
Solved.
Re: Attach Object -
Gh0sT_ - 26.09.2010
if (strcmp("/xD", cmdtext, true, 3) == 0)
{
AttachObjectToPlayer( 1257, playerid, 1.5, 0.5, 0, 0, 1.5, 2 );
return 1;
}
try this.
Re: Attach Object -
[XST]O_x - 26.09.2010
pawn Код:
if (strcmp( cmdtext,"/xD", true) == 0)
{
new object = CreateObject(1257,0,0,0,0,0,0);
AttachObjectToPlayer(object,playerid,1.5,0,0,1.5,2);
return 1;
}
You need to assign a variable to the object.
Re: Attach Object -
HyperZ - 26.09.2010
<Removed>