Author Topic: Creating Objects?  (Read 27084 times)

0 Members and 1 Guest are viewing this topic.

Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #45 on: November 22, 2011, 11:28:47 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.



You need learn something dont always wait for something you can doo your self now if this worked with me why dont you give chance smart one

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: Creating Objects?
« Reply #46 on: November 22, 2011, 12:15:47 pm »
is this what you people looking for??????? check here http://thijn.vrocker-hosting.co.uk/VCWiki/index.php/ModelIDs

This is a very useful thank you pointing it out and ofcourse Thijn for writing it ;D

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Creating Objects?
« Reply #47 on: November 22, 2011, 06:15:33 pm »
When are you going to learn mikee. Those functions you somehow created, will not work. If it works also, it will make server extremly laggy.
I'm beginning to feel like a Lag God, Lag God

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Creating Objects?
« Reply #48 on: November 22, 2011, 10:58:56 pm »
mikee, I don't think you understand that those functions are SA:MP-specific. Trying to use it in VC:MP will fail. Not only that, but none of the remote functions given even exist.
Do not PM me for support.




Offline GTA Fiji City

  • Street Thug
  • *
  • Posts: 41
  • Speech is Silver, Silence is Gold.
    • View Profile
Re: Creating Objects?
« Reply #49 on: November 22, 2011, 11:15:58 pm »
is it possible that if you add a object in a server will it be orbiting all the the time in the server or it wont orb at a certain time or it wont orb at all?
- [MK]VCS

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

Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #50 on: November 24, 2011, 10:19:26 am »
When are you going to learn mikee. Those functions you somehow created, will not work. If it works also, it will make server extremly laggy.

Now you and that Mother fucker stormeus are pissing me off HOME BOY. . IF YOU LIVED OUT I WOULD WHOOP BOTH YO ASS'S GET OFF MY BACK BITCH

Offline mikeee

  • Street Thug
  • *
  • Posts: 7
    • View Profile
Re: Creating Objects?
« Reply #51 on: November 24, 2011, 10:21:09 am »
mikee, I don't think you understand that those functions are SA:MP-specific. Trying to use it in VC:MP will fail. Not only that, but none of the remote functions given even exist.

YOU TOO BITCH YOUR FUCKEN WHAT ARE YOU TWO MY MOM AND DAD YOU 2 DICK EACH OTHER EVERY NIGHT IF YOU DONT GET OFF MY BACK I WILL PERSONLY HAVE [761]Mr.Pimpn HACK YALL SHIT AND END YOUR MOUTHS HOME BOYs

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Creating Objects?
« Reply #52 on: November 24, 2011, 03:15:33 pm »
Storm, you get what he's trying to say? Cause I don't. Now listen. 0.3z r2 doesn't not support object creating and it's not even in it. SA:MP and VC:MP are under two different management. (Something like that) You don't know how to learn from mistakes. Your not even helping the situation, only making it worst.
I'm beginning to feel like a Lag God, Lag God

Offline Morphine

  • Made Man
  • ***
  • Posts: 109
    • View Profile
Re: Creating Objects?
« Reply #53 on: November 24, 2011, 03:35:45 pm »
mike, these functions will not work on VC-MP. There's no reason to get hysterical on stormeus because in the end, he just wants to help you. Get over your tears and code something that will actually benefit the VC-MP society.

+ I do advise you to not DDoS the server in my signature, you will not like what will happen to you if you try.
« Last Edit: November 24, 2011, 03:38:18 pm by Morphine »

yazeen

  • Guest
Re: Creating Objects?
« Reply #54 on: November 24, 2011, 05:44:02 pm »
YOU TOO BITCH YOUR FUCKEN WHAT ARE YOU TWO MY MOM AND DAD YOU 2 DICK EACH OTHER EVERY NIGHT IF YOU DONT GET OFF MY BACK I WILL PERSONLY HAVE [761]Mr.Pimpn HACK YALL SHIT AND END YOUR MOUTHS HOME BOYs
Now you and that Mother fucker stormeus are pissing me off HOME BOY. . IF YOU LIVED OUT I WOULD WHOOP BOTH YO ASS'S GET OFF MY BACK BITCH
I can even speak English better than you.
I lol'd for 10 minutes when i saw you got Banned  in strike's post.

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Creating Objects?
« Reply #55 on: November 24, 2011, 08:34:42 pm »
It's not worth posting about him anymore, mikee's been banned for reasons unknown.
http://forum.vicecitymultiplayer.com/index.php?topic=3942.0
Do not PM me for support.




Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: Creating Objects?
« Reply #56 on: November 25, 2011, 08:46:03 am »
I'm guessing something like what he did before.
I'm beginning to feel like a Lag God, Lag God

Offline Jay

  • Street Thug
  • *
  • Posts: 12
  • Please don't criticize me. . . Scripting 4 Free
    • View Profile
    • Real Movie's
Re: Creating Objects?
« Reply #57 on: February 01, 2012, 12:59:47 pm »
YOU TOO BITCH YOUR FUCKEN WHAT ARE YOU TWO MY MOM AND DAD YOU 2 DICK EACH OTHER EVERY NIGHT IF YOU DONT GET OFF MY BACK I WILL PERSONLY HAVE [761]Mr.Pimpn HACK YALL SHIT AND END YOUR MOUTHS HOME BOYs
Now you and that Mother fucker stormeus are pissing me off HOME BOY. . IF YOU LIVED OUT I WOULD WHOOP BOTH YO ASS'S GET OFF MY BACK BITCH
I can even speak English better than you.
I lol'd for 10 minutes when i saw you got Banned  in strike's post.

yazen [761]BackUp is a developt scripter i know him hes helping me with my server and im sorry but i dont need your help no more

Offline jimmy

  • Wiseguy
  • **
  • Posts: 94
    • View Profile
Re: Creating Objects?
« Reply #58 on: February 01, 2012, 03:09:44 pm »
ankit remeber me azeem hafeez on skype can u host my server for free??
Storm City Owner

Stormcity.smfnew.com

yazeen

  • Guest
Re: Creating Objects?
« Reply #59 on: February 01, 2012, 03:20:14 pm »
YOU TOO BITCH YOUR FUCKEN WHAT ARE YOU TWO MY MOM AND DAD YOU 2 DICK EACH OTHER EVERY NIGHT IF YOU DONT GET OFF MY BACK I WILL PERSONLY HAVE [761]Mr.Pimpn HACK YALL SHIT AND END YOUR MOUTHS HOME BOYs
Now you and that Mother fucker stormeus are pissing me off HOME BOY. . IF YOU LIVED OUT I WOULD WHOOP BOTH YO ASS'S GET OFF MY BACK BITCH
I can even speak English better than you.
I lol'd for 10 minutes when i saw you got Banned  in strike's post.

yazen [761]BackUp is a developt scripter i know him hes helping me with my server and im sorry but i dont need your help no more

Bumping old topics? You could PM me that.  Also i was going to tell you the same.