help [CREATING OBJECT IN GAME]
#1

Ok I try to make a command which creates object in game. But it fails. The object is not at the perfect postition.

pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z);
PosInfo[playerid][posx] = X;
PosInfo[playerid][posy] = Y;
PosInfo[playerid][posz] = Z;
CreateDynamicObject( 2942, X+2, Y+2, Z+2, 12, 15, 0, -1, 0);
Reply
#2

Код:
CreateDynamicObject( 2942, X+2, Y+2, Z+2, 12, 15, 0, -1, 0);
replace with
Код:
CreateDynamicObject( 2942, X, Y, Z, 12, 15, 0, -1, 0);
tell me is it working?
Reply
#3

ya some of it works but the object placed on left of me. Not infront of me
Reply
#4

is there any good co-ordinates for that?
Reply
#5

Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
is there any good co-ordinates for that?
Why not using MTA Editor? Or you can use this.
Reply
#6

Quote:
Originally Posted by xRyder
Посмотреть сообщение
Why not using MTA Editor? Or you can use this.
you are not getting me. I want to make object in game
Reply
#7

Quote:
Originally Posted by jejemonerz123
Посмотреть сообщение
you are not getting me. I want to make object in game
Its much easier to create it in MTA or that other object editor and just add it in the script
Reply
#8

ya i know. So it can't be possible to create that object in game?
Reply
#9

CreateDynamicObject( 2942, X, Y+2, Z, 12, 15, 0, -1, 0);
Reply
#10

not works. I don't think there is a function like that in sa-mp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)