Quantcast

Jump to content

» «
Photo

Adding Weapon Spawn

5 replies to this topic
ssbawesome
  • ssbawesome

    The holier than thou killer

  • Members
  • Joined: 01 Aug 2013
  • United-States
  • Contribution Award [Concepts]
    April Fools Winner 2015

#1

Posted 16 September 2013 - 12:20 AM

So, I just created a weapon spawn code, and I don't know where to put it.

0213: $weapon1 = create_pickup #GUN_VIBE2 type  15 at 2504.84 -1773.9 15.3721


Bad.boy!
  • Bad.boy!

    SA modder

  • Feroci
  • Joined: 20 Jun 2010
  • Netherlands

#2

Posted 16 September 2013 - 06:22 AM

Read the first 4 chapters http://gtaforums.com...cript-tutorial/


ED-E
  • ED-E

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • United-Kingdom

#3

Posted 16 September 2013 - 10:57 AM Edited by The_Sorrow, 16 September 2013 - 01:30 PM.

*deleted*


Jack
  • Jack

    firearms and adrenaline

  • Feroci
  • Joined: 06 Dec 2011
  • Colombia

#4

Posted 16 September 2013 - 12:03 PM

Hey Sorrow great sense for humor man:
1) pickups with model load,
2) After the 0247 missing 038b,
3) end_thread in CLEO,
4) global variable in CLEO...

My code:
{$CLEO}
0000:

repeat
    wait 250
until 0256:   player $PLAYER_CHAR defined
0213: 0@ = create_pickup #GUN_VIBE2 type  15 at 2504.84 -1773.9 15.3721
0A93: end_custom_thread

ghosper
  • ghosper

    Player Hater

  • Members
  • Joined: 22 Apr 2011

#5

Posted 16 September 2013 - 01:58 PM Edited by ghosper, 16 September 2013 - 01:59 PM.

{$VERSION 3.1.0023}
{$CLEO .cs}
 
thread 'WEAP'
 
:WEAP
wait 0
0006: 2@ = -229908 
if
0038:   &0(2@,4i) == 0x57454150
jf @WEAP
0004: &0(2@,4i) = 0x44554D00
04C4: store_coords_to 3@ 4@ 5@ from_actor $PLAYER_ACTOR with_offset -6.0 2.0 0.0
032B: 2@ = create_weapon_pickup 19001 group 4 ammo 1000 at 3@ 4@ 5@
jump @WEAP
 
 
just type "weap" and replace "19001" from weapon pickup tu your desired weapon id

ssbawesome
  • ssbawesome

    The holier than thou killer

  • Members
  • Joined: 01 Aug 2013
  • United-States
  • Contribution Award [Concepts]
    April Fools Winner 2015

#6

Posted 16 September 2013 - 08:26 PM

ALright, thanks.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users