how i put object in the game? -
kobrasek - 25.02.2009
please someone can make me guide
how i make object in the ride..
in mode RP..
(only cops can set the object please )
Re: how i put object in the game? -
SpiderPork - 25.02.2009
CreateObject
Re: how i put object in the game? -
kobrasek - 25.02.2009
some onee help meE?? =[[[
Re: how i put object in the game? -
SpiderPork - 25.02.2009
Quote:
Originally Posted by §ЮПРл® ЮШ®|{
CreateObject
|
Re: how i put object in the game? -
kobrasek - 25.02.2009
ohh spamerss !! OMG
Re: how i put object in the game? -
Sandra18[NL] - 25.02.2009
Quote:
Originally Posted by kobrasek
ohh spamerss !! OMG
|
Why, you got the answer to times:
Your question: "How to put object in the game"
Answer: "CreateObject(....);"
Hint: Search for "CreateObject" in
sa:mp-wiki
Re: how i put object in the game? -
]shizz[ - 25.02.2009
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!
Re: how i put object in the game? -
Norn - 25.02.2009
Keep the language neutral, like 90% of people on here are like 12..
Re: how i put object in the game? -
kobrasek - 25.02.2009
no XDDD
i wanna put object in command
sorry my english so bad =\
Re: how i put object in the game? -
1337pr0 - 26.02.2009
Quote:
Originally Posted by kobrasek
no XDDD
i wanna put object in command
sorry my english so bad =\
|
You don't seem to have grasped the meaning of the word SEARCH.
I see that you need to make a command for the cops. For example: /object. Then, you need to check if they're really a cop. Then, you need to make an object.
Search this forum for dcmd and sscanf. Then, look on
https://sampwiki.blast.hk/wiki/Game_Object_ID_List for the desired object. Then, go to
https://sampwiki.blast.hk/wiki/CreateObject and read all of it. If you still don't understand, then go to
http://www.compuphase.com/pawn/pawn-lang.pdf and read some of that.
If you STILL don't understand what you need to do, then learn a bit more about scripting before you come on this forum and start calling helpful people spammers.