SA-MP Forums Archive
help /createzombie (creates object to your position) - 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: help /createzombie (creates object to your position) (/showthread.php?tid=178308)



help /createzombie (creates object to your position) - andruz99 - 21.09.2010

okei i built this object in MTA map editor

/imageshack/i/testzm.png/

and i have already created my command


Код:
if(strcmp(cmd, "/createzombie", true) == 0)
{
new Float:X; new Float:Y; new Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(2905,X,Y,Z,0, 0, 0);
CreateObject(2906,X,Y,Z,0, 0, 0);
CreateObject(2907,X,Y,Z,0, 0, 0);
CreateObject(2908,X,Y,Z,0, 0, 0);
return 1;
}
but my command makes all zombie objects in one position how can i make like the body is on foot and the head is on body etc...

help anybody?


Re: help /createzombie (creates object to your position) - Seven. - 21.09.2010

This is not possible as object are in 1 piece, with some objects you have to put them together.


Re: help /createzombie (creates object to your position) - dirkblok - 21.09.2010

You have to change the Z positions, try to change the z value a little bit with that values...

GL.


Re: help /createzombie (creates object to your position) - andruz99 - 21.09.2010

i mean like in the picture..

when i type /createzombie then it creates a zombie in my positions and it should be like on the pictures