Quantcast

Jump to content

» «
Photo

GTA SA Holster Code

  • This topic is locked This topic is locked
7 replies to this topic
Vorago
  • Vorago

    Player Hater

  • Members
  • Joined: 27 Dec 2013

#1

Posted 27 December 2013 - 08:23 AM

Hello I'm Vorago and I'm new to coding here, I wanted to make my own holster mod for a SAMP game. I used some already made before but they seem out of place and I would like to edit them so they fit into place. So can someone post the code and instructions on how to make it work and move the weapons around I'd be thankful. Like I said New to this but I learn quick. 

 

  Thanks Again

              -Vorago

 

 


uNi
  • uNi

    Feroci

  • Administrator
  • Joined: 14 May 2004
  • None
  • Best Official Gang 2014 [Feroci]

#2

Posted 27 December 2013 - 10:31 AM

Have a look at the sa-mp wiki, there's plenty of information on functions in there.


Vorago
  • Vorago

    Player Hater

  • Members
  • Joined: 27 Dec 2013

#3

Posted 27 December 2013 - 06:39 PM

I couldn't find anything of use in there, but thanks for replying.


Vorago
  • Vorago

    Player Hater

  • Members
  • Joined: 27 Dec 2013

#4

Posted 21 January 2014 - 10:24 PM

I wanted to make it for Single Player, like outfit.asi but I want it to just show the Sniper Rifle and shotguns.


K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Best Poster [Programming] 2015
    Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#5

Posted 22 January 2014 - 12:33 AM

What exactly do you want to do, and what's your background on programming and C/C++?


uNi
  • uNi

    Feroci

  • Administrator
  • Joined: 14 May 2004
  • None
  • Best Official Gang 2014 [Feroci]

#6

Posted 25 January 2014 - 01:52 AM

I couldn't find anything of use in there, but thanks for replying.

 

new myobject;
myobject = CreateObject(19341, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(myobject, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);

 

(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)
objectid The ID of the object to attach to the player.
playerid The ID of the player to attach the object to.
Float:OffsetX The distance between the player and the object in the X direction.
Float:OffsetY The distance between the player and the object in the Y direction.
Float:OffsetZ The distance between the player and the object in the Z direction.
Float:RotX The X rotation between the object and the player.
Float:RotY The Y rotation between the object and the player.
Float:RotZ The Z rotation between the object and the player.

 

Returns This function doesn't return a specific value.

Vorago
  • Vorago

    Player Hater

  • Members
  • Joined: 27 Dec 2013

#7

Posted 26 January 2014 - 05:09 AM

What exactly do you want to do, and what's your background on programming and C/C++?

I just want the Sniper rifle and Shotgun mounted on the back. I play on a server and it already has Assault Rifles mounted, Pistol, SMG just needs Sniper and Shotgun to complete the set. 


K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Best Poster [Programming] 2015
    Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#8

Posted 26 January 2014 - 05:52 PM

Then uNi is absolutely right. He listed everything you need.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users