a little easy problem? - 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: a little easy problem? (
/showthread.php?tid=143136)
a little easy problem? -
hardstop - 21.04.2010
Код:
if(strcmp(cmd, "/tool", true) == 0)
{
new Float:x; new Float:y; new Float:z;
GetPlayerPos(playerid,x,y,z);
CreateObject(1765,x,y,z,0, 0, 0);
return 1;
}
Okey i have this command when i use it
happens this:
/imageshack/i/notontheground.png/
1. Its not on the ground ( Its the problem )
Now i have a question how can i make that the object wont be in air?
Re: a little easy problem? -
Correlli - 21.04.2010
Use an object/map editor.
Re: a little easy problem? -
hardstop - 21.04.2010
no...
i want that command makes an object to players coordinates but the object is in air
Re: a little easy problem? -
Correlli - 21.04.2010
Quote:
Originally Posted by hardstop
i want that command makes an object to players coordinates but the object is in air
|
Then lower the Z coord.
Re: a little easy problem? -
hardstop - 21.04.2010
i cant ?
GetPlayerPos(playerid,x,y,z);
CreateObject(1765,x,y,z, 0, 0, 0);
Re: a little easy problem? -
DJDhan - 21.04.2010
I don't see why there is any need of GetPlayerPos funtion if you use map editor to add static pickup

What about other pickup locations? Does it still be in the air?
Re: a little easy problem? -
Correlli - 21.04.2010
Quote:
Originally Posted by hardstop
i cant ?
GetPlayerPos(playerid,x,y,z);
CreateObject(1765,x,y,z, 0, 0, 0);
|
You can?
pawn Код:
GetPlayerPos(playerid, x, y, z);
CreateObject(1765, x, y, z - 1.0, 0.0, 0.0, 0.0);
Re: a little easy problem? -
hardstop - 21.04.2010
i want to make like building command like you an build an object IG, and i want to add that you must buy hammer etc...
but the object stays in air its the only problem
Re: a little easy problem? -
hardstop - 21.04.2010
Its works yay Thnx
Re: a little easy problem? -
hardstop - 21.04.2010
Do you know also how to make objects save like in config file and load when server started or something?