how i put object in the game?
#1

please someone can make me guide
how i make object in the ride..
in mode RP..
(only cops can set the object please )
Reply
#2

CreateObject
Reply
#3

some onee help meE?? =[[[
Reply
#4

Quote:
Originally Posted by §ЮПРл® ЮШ®|{
CreateObject
Reply
#5

ohh spamerss !! OMG
Reply
#6

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

Keep the language neutral, like 90% of people on here are like 12..
Reply
#9

no XDDD
i wanna put object in command
sorry my english so bad =\
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)