a little easy problem?
#1

Код:
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?

Reply
#2

Use an object/map editor.
Reply
#3

no...

i want that command makes an object to players coordinates but the object is in air
Reply
#4

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.
Reply
#5

i cant ?

GetPlayerPos(playerid,x,y,z);
CreateObject(1765,x,y,z, 0, 0, 0);
Reply
#6

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?
Reply
#7

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);
Reply
#8

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
Reply
#9

Its works yay Thnx
Reply
#10

Do you know also how to make objects save like in config file and load when server started or something?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)