how i put object in the game?
#7

Are you a fucking idiot or what? You were told the RIGHT function to put objects in game and you call us spammers? Oh really - we're spammers? If so then get the fuck out to a place where everyone does the script for you very quickly and without mistakes. This however is the SA-MP forum and if you're unable to comply with our rules and what you're offered, you may leave instantly.

The function to implement objects into your server is CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ).
Here are some other functions that might help you:

General objects
SetObjectPos(objectid, Float:X, Float:Y, Float:Z);
GetObjectPos(objectid, &Float:X, &Float:Y, &Float:Z);
SetObjectRot(objectid, Float:RotX, Float:RotY, Float:RotZ);
GetObjectRot(objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
IsValidObject(objectid);
DestroyObject(objectid);
MoveObject(objectid, Float:X, Float:Y, Float:Z, Float:Speed);
StopObject(objectid);
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);

Objects for individual players (used in streamers)
CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SetPlayerObjectPos(playerid, objectid, Float:X, Float:Y, Float:Z);
GetPlayerObjectPos(playerid, objectid, &Float:X, &Float:Y, &Float:Z);
SetPlayerObjectRot(playerid, objectid, Float:RotX, Float:RotY, Float:RotZ);
GetPlayerObjectRot(playerid, objectid, &Float:RotX, &Float:RotY, &Float:RotZ);
IsValidPlayerObject(playerid, objectid);
DestroyPlayerObject(playerid, objectid);
MovePlayerObject(playerid, objectid, Float:X, Float:Y, Float:Z, Float:Speed);
StopPlayerObject(playerid, objectid);
AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);


Hopefully you're able to do something more but "OMG SPAMMERS" from now on with the functions I gave.
And yes, as Sandra said, checking out the SA-MP Wiki can come inhandy with whatever help you need. Also checking out /pawno/include/ folder can come in handy!
Reply


Messages In This Thread
how i put object in the game? - by kobrasek - 25.02.2009, 05:41
Re: how i put object in the game? - by SpiderPork - 25.02.2009, 05:52
Re: how i put object in the game? - by kobrasek - 25.02.2009, 07:05
Re: how i put object in the game? - by SpiderPork - 25.02.2009, 07:08
Re: how i put object in the game? - by kobrasek - 25.02.2009, 11:59
Re: how i put object in the game? - by Sandra18[NL] - 25.02.2009, 12:04
Re: how i put object in the game? - by ]shizz[ - 25.02.2009, 12:06
Re: how i put object in the game? - by Norn - 25.02.2009, 12:21
Re: how i put object in the game? - by kobrasek - 25.02.2009, 17:38
Re: how i put object in the game? - by 1337pr0 - 26.02.2009, 05:17

Forum Jump:


Users browsing this thread: 3 Guest(s)