help [CREATING OBJECT IN GAME] - 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 [CREATING OBJECT IN GAME] (
/showthread.php?tid=228548)
help [CREATING OBJECT IN GAME] -
jejemonerz123 - 19.02.2011
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);
Re: help [CREATING OBJECT IN GAME] -
77ther - 20.02.2011
Код:
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?
Re: help [CREATING OBJECT IN GAME] -
jejemonerz123 - 20.02.2011
ya some of it works but the object placed on left of me. Not infront of me
Re: help [CREATING OBJECT IN GAME] -
jejemonerz123 - 20.02.2011
is there any good co-ordinates for that?
Re: help [CREATING OBJECT IN GAME] -
xRyder - 20.02.2011
Quote:
Originally Posted by jejemonerz123
is there any good co-ordinates for that?
|
Why not using MTA Editor? Or you can use
this.
Re: help [CREATING OBJECT IN GAME] -
jejemonerz123 - 20.02.2011
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
Re: help [CREATING OBJECT IN GAME] -
77ther - 20.02.2011
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
Re: help [CREATING OBJECT IN GAME] -
jejemonerz123 - 20.02.2011
ya i know. So it can't be possible to create that object in game?
Re: help [CREATING OBJECT IN GAME] -
Marricio - 20.02.2011
CreateDynamicObject( 2942, X, Y+2, Z, 12, 15, 0, -1, 0);
Re: help [CREATING OBJECT IN GAME] -
jejemonerz123 - 20.02.2011
not works. I don't think there is a function like that in sa-mp