Quantcast

Jump to content

» «
Photo

Adding Weapon Spawn

5 replies to this topic
ClaudX
  • ClaudX

    Keep singing.

  • Members
  • Joined: 01 Aug 2013
  • United-States
  • Best Total Overhaul 2016 [Shine o' Vice] [Contribution]
    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!

    ex 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/


Node
  • Node

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • None

#3

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

*deleted*


Jack
  • Jack

    MODEL_SWAT

  • Feroci
  • Joined: 06 Dec 2011
  • Serbia

#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: [email protected] = 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: [email protected] = -229908 
if
0038:   &0([email protected],4i) == 0x57454150
jf @WEAP
0004: &0([email protected],4i) = 0x44554D00
04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset -6.0 2.0 0.0
032B: [email protected] = create_weapon_pickup 19001 group 4 ammo 1000 at [email protected] [email protected] [email protected]
jump @WEAP
 
 
just type "weap" and replace "19001" from weapon pickup tu your desired weapon id

ClaudX
  • ClaudX

    Keep singing.

  • Members
  • Joined: 01 Aug 2013
  • United-States
  • Best Total Overhaul 2016 [Shine o' Vice] [Contribution]
    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