Author Topic: Creating Objects?  (Read 32757 times)

0 Members and 1 Guest are viewing this topic.

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Creating Objects?
« Reply #30 on: November 12, 2011, 08:12:34 pm »
if it doesn't rotates, then why is it called a pickup?

............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\


Because you can pick it up?

Offline Morphine

  • Made Man
  • ***
  • Posts: 109
    • View Profile
Re: Creating Objects?
« Reply #31 on: November 16, 2011, 01:27:59 am »
stormeus it doesn't seem he's hacking though. As far as I can see from the assrape on the ground, he seemed to be a Mario too.

Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #32 on: November 18, 2011, 04:05:18 am »
Try this if you are a good script put it together


[pawn]/*
   functions:
      CreateStreamObject(modelid,Float:xpos,Float:ypos,Float:zpos,Float:xrot,Float:yrot,Float:zrot,Float:viewdist) - Create a streamed object
      DestroyStreamObject(id) - Destroy a streamed object
      GetStreamObjectPos(id,&Float:xpos,&Float:ypos,&Float:zpos) - Get the position of a streamed object
      GetStreamObjectRot(id,&Float:xrot,&Float:yrot,&Float:zrot) - Get the rotation of a streamed object
      SetStreamObjectPos(id,Float:xpos,Float:ypos,Float:zpos) - Set the position of a streamed object
      SetStreamObjectRot(id,Float:xrot,Float:yrot,Float:zrot) - Set the rotation of a streamed object
                AttachStreamObjectToPlayer(id,playerid,Float:xoff,Float:yoff,Float:zoff,Float:xrot,Float:yrot,Float:zrot) - Attach a streamed object to a player
                MoveStreamObject(id2,Float:movx,Float:movy,Float:movz,Float:speed) - Move a streamed object
                MidoStreamDisconnect(playerid) - Goes under OnPlayerDisconnect
*/

#include <a_vcmp>

//----------------------------------------------------------
stock CreateStreamObject(modelid,Float:xpos,Float:ypos,Float:zpos,Float:xrot,Float:yrot,Float:zrot,Float:viewdist)
{
   return CallRemoteFunction("Core_CreateStreamObject","ifffffff",modelid,xpos,ypos,zpos,xrot,yrot,zrot,viewdist);
}

//----------------------------------------------------------
stock DestroyStreamObject(id)
{
    CallRemoteFunction("Core_DestroyStreamObject","i",id);
}

//----------------------------------------------------------
stock GetStreamObjectPos(id,&Float:xpos,&Float:ypos,&Float:zpos)
{
    xpos = Float:CallRemoteFunction("Core_GetXPos","i",id);
    ypos = Float:CallRemoteFunction("Core_GetYPos","i",id);
    zpos = Float:CallRemoteFunction("Core_GetZPos","i",id);
}

//----------------------------------------------------------
stock GetStreamObjectRot(id,&Float:xrot,&Float:yrot,&Float:zrot)
{
    xrot = Float:CallRemoteFunction("Core_GetXRot","i",id);
    yrot = Float:CallRemoteFunction("Core_GetYRot","i",id);
    zrot = Float:CallRemoteFunction("Core_GetZRot","i",id);
}

//----------------------------------------------------------
stock SetStreamObjectPos(id,Float:xpos,Float:ypos,Float:zpos)
{
    CallRemoteFunction("Core_SetStreamObjectPos","ifff",id,xpos,ypos,zpos);
}

//----------------------------------------------------------
stock SetStreamObjectRot(id,Float:xrot,Float:yrot,Float:zrot)
{
    CallRemoteFunction("Core_SetStreamObjectRot","ifff",id,xrot,yrot,zrot);
}

//----------------------------------------------------------
stock AttachStreamObjectToPlayer(id,playerid,Float:xoff,Float:yoff,Float:zoff,Float:xrot,Float:yrot,Float:zrot)
{
    CallRemoteFunction("Core_AttachStreamObjectToPlayer","iiffffff",id,playerid,xoff,yoff,zoff,xrot,yrot,zrot);
}

//----------------------------------------------------------
stock MoveStreamObject(id,Float:movx,Float:movy,Float:movz,Float:speed)
{
    CallRemoteFunction("Core_MoveStreamObject","iffff",id,movx,movy,movz,speed);
}


//----------------------------------------------------------
stock MidoStreamDisconnect(playerid)
{
    CallRemoteFunction("Core_MidoStreamDisconnect","i",playerid);
}[/pawn]

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Creating Objects?
« Reply #33 on: November 18, 2011, 10:43:16 am »
Try this if you are a good script put it together


[pawn]/*
   functions:
      CreateStreamObject(modelid,Float:xpos,Float:ypos,Float:zpos,Float:xrot,Float:yrot,Float:zrot,Float:viewdist) - Create a streamed object
      DestroyStreamObject(id) - Destroy a streamed object
      GetStreamObjectPos(id,&Float:xpos,&Float:ypos,&Float:zpos) - Get the position of a streamed object
      GetStreamObjectRot(id,&Float:xrot,&Float:yrot,&Float:zrot) - Get the rotation of a streamed object
      SetStreamObjectPos(id,Float:xpos,Float:ypos,Float:zpos) - Set the position of a streamed object
      SetStreamObjectRot(id,Float:xrot,Float:yrot,Float:zrot) - Set the rotation of a streamed object
                AttachStreamObjectToPlayer(id,playerid,Float:xoff,Float:yoff,Float:zoff,Float:xrot,Float:yrot,Float:zrot) - Attach a streamed object to a player
                MoveStreamObject(id2,Float:movx,Float:movy,Float:movz,Float:speed) - Move a streamed object
                MidoStreamDisconnect(playerid) - Goes under OnPlayerDisconnect
*/

#include <a_vcmp>

//----------------------------------------------------------
stock CreateStreamObject(modelid,Float:xpos,Float:ypos,Float:zpos,Float:xrot,Float:yrot,Float:zrot,Float:viewdist)
{
   return CallRemoteFunction("Core_CreateStreamObject","ifffffff",modelid,xpos,ypos,zpos,xrot,yrot,zrot,viewdist);
}

//----------------------------------------------------------
stock DestroyStreamObject(id)
{
    CallRemoteFunction("Core_DestroyStreamObject","i",id);
}

//----------------------------------------------------------
stock GetStreamObjectPos(id,&Float:xpos,&Float:ypos,&Float:zpos)
{
    xpos = Float:CallRemoteFunction("Core_GetXPos","i",id);
    ypos = Float:CallRemoteFunction("Core_GetYPos","i",id);
    zpos = Float:CallRemoteFunction("Core_GetZPos","i",id);
}

//----------------------------------------------------------
stock GetStreamObjectRot(id,&Float:xrot,&Float:yrot,&Float:zrot)
{
    xrot = Float:CallRemoteFunction("Core_GetXRot","i",id);
    yrot = Float:CallRemoteFunction("Core_GetYRot","i",id);
    zrot = Float:CallRemoteFunction("Core_GetZRot","i",id);
}

//----------------------------------------------------------
stock SetStreamObjectPos(id,Float:xpos,Float:ypos,Float:zpos)
{
    CallRemoteFunction("Core_SetStreamObjectPos","ifff",id,xpos,ypos,zpos);
}

//----------------------------------------------------------
stock SetStreamObjectRot(id,Float:xrot,Float:yrot,Float:zrot)
{
    CallRemoteFunction("Core_SetStreamObjectRot","ifff",id,xrot,yrot,zrot);
}

//----------------------------------------------------------
stock AttachStreamObjectToPlayer(id,playerid,Float:xoff,Float:yoff,Float:zoff,Float:xrot,Float:yrot,Float:zrot)
{
    CallRemoteFunction("Core_AttachStreamObjectToPlayer","iiffffff",id,playerid,xoff,yoff,zoff,xrot,yrot,zrot);
}

//----------------------------------------------------------
stock MoveStreamObject(id,Float:movx,Float:movy,Float:movz,Float:speed)
{
    CallRemoteFunction("Core_MoveStreamObject","iffff",id,movx,movy,movz,speed);
}


//----------------------------------------------------------
stock MidoStreamDisconnect(playerid)
{
    CallRemoteFunction("Core_MidoStreamDisconnect","i",playerid);
}[/pawn]

............................................________
....................................,.-‘”...................``~.,
.............................,.-”...................................“-.,
.........................,/...............................................”:,
.....................,?......................................................\,
.................../...........................................................,}
................./......................................................,:`^`..}
.............../...................................................,:”........./
..............?.....__.........................................:`.........../
............./__.(.....“~-,_..............................,:`........../
.........../(_....”~,_........“~,_....................,:`........_/
..........{.._$;_......”=,_.......“-,_.......,.-~-,},.~”;/....}
...........((.....*~_.......”=-._......“;,,./`..../”............../
...,,,___.\`~,......“~.,....................`.....}............../
............(....`=-,,.......`........................(......;_,,-”
............/.`~,......`-...............................\....../\
.............\`~.*-,.....................................|,./.....\,__
,,_..........}.>-._\...................................|..............`=~-,
.....`=~-,_\_......`\,.................................\
...................`=~-,,.\,...............................\
................................`:,,...........................`\..............__
.....................................`=-,...................,%`>--==``
........................................_\..........._,-%.......`\
...................................,<`.._|_,-&``................`\

WTF ??

In 0.3zR2 can't add Objects !

Not exist Functions For Objects in this version !

In 0.4 will be and Functions For Objects.


Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline RasikhQadeer

  • Street Thug
  • *
  • Posts: 49
  • Hero_Great! The Great Scripter!
    • View Profile
Re: Creating Objects?
« Reply #34 on: November 19, 2011, 06:48:59 am »
Ankit You should let the pickups it does not mae your server cool add cool cmds cool dm location madara or any scripter help for a spree system or lms then your server is cool.

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Creating Objects?
« Reply #35 on: November 19, 2011, 12:17:47 pm »
Actually VCMP used to support adding objects a long, long time ago. But the function was too unstable, thus removed.  :P

Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #36 on: November 20, 2011, 03:29:11 am »
Moby you can add objects by making your own [pawn]stock[/pawn] or [pawn]public[/pawn]
new files you just have to be a good scriptter

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Creating Objects?
« Reply #37 on: November 20, 2011, 07:03:40 pm »
Those aren't objects. Those are functions.
Do not PM me for support.




Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Creating Objects?
« Reply #38 on: November 20, 2011, 07:56:50 pm »
Moby you can add objects by making your own [pawn]stock[/pawn] or [pawn]public[/pawn]
new files you just have to be a good scriptter






[OMG] PALM FACE [/OMG]

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #39 on: November 21, 2011, 03:52:55 am »
Those aren't objects. Those are functions.

I have a made object edtior for VC:MP but i am not handing it out cuz all you doo is talk shit and put your hand out for stuff. . Well my object streamer works thank you very much now for the brake


Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Creating Objects?
« Reply #40 on: November 21, 2011, 04:53:49 am »
I have a made object edtior for VC:MP but i am not handing it out cuz all you doo is talk shit and put your hand out for stuff

new and stock aren't objects. If you think saying a fact is talking shit, I'm scared to see what your editor is. Speaking of which, how could you make a VC:MP object editor when VC:MP doesn't support objects? A streamer? Creating pickups as they come in and out of view? Fact of the matter is, those aren't objects, and I could easily do the same by taking a bunch of coordinates and spawning objects on them. There's also the matter that a streamer made in Pawn would be resource overkill.

Now, you don't seem to take criticism well. When I state a fact, like
Those aren't objects. Those are functions.

You get all pissy. Acknowledge you made a mistake, or post something to back up your claim instead of saying "I MADE THIS BUT U CAN'T HAVE IT BECAUSE I HATE YOU AND YOU HATE MY SCRIPTS <MEXICAN TROLLFACE>" But that's all I have to say on the subject. I really don't look forward to using any of your scripts until you've become more of a scripter and less of an ignoramus.
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Creating Objects?
« Reply #41 on: November 21, 2011, 08:21:38 am »
Well, If you need serious help, read this tutorial by storm. It will explain to you about Pawn Language. If you still don't want to learn, you are the worst scripter i have ever seen.
I'm beginning to feel like a Lag God, Lag God

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Creating Objects?
« Reply #42 on: November 21, 2011, 03:14:35 pm »

OFF: Nice Signature Stormeus  ;)

Quote from: Fuzzy168 on Today at 02:41:11 PM
Examples of good servers with better Administrator team are like XE, Miami-Dade, Hunting Arena and others like Argonath RPG, Vice Legends and Ka Deathmatch.


Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Creating Objects?
« Reply #43 on: November 22, 2011, 07:06:56 am »
lol..
On: Lock the topic. Its done..  :-X
I'm beginning to feel like a Lag God, Lag God

Offline GTA Fiji City

  • Street Thug
  • *
  • Posts: 41
  • Speech is Silver, Silence is Gold.
    • View Profile
Re: Creating Objects?
« Reply #44 on: November 22, 2011, 09:09:10 am »
is this what you people looking for??????? check here http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/ModelIDs
- [MK]VCS

Proud MK trainee, VC:MP player since 2011. PsyShell Manager. Zombie-Invasion, Avengers City, OutDoor-City & Zero's Server Administrator.