IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Spawn at next player

 what opcode should i use?
 
TLFdjobaw  
Posted: Sunday, Jul 29 2012, 09:38
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



hi guys.. i going make CJ spawner.. here the code
CODE
//-------------MAIN---------------
thread "NULL"

:NULL_8
wait 0
if
0AB0:   key_pressed 50
else_jump @NULL_8
jump @NULL_34

:NULL_34
wait 0
Model.Load(#MICRO_UZI)
Model.Load(#NULL)
else_jump @NULL_54

:NULL_54
wait 0
if
  Model.Available(#NULL)
else_jump @NULL_54
04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 3.0 -0.3
0@ = Actor.Angle($PLAYER_ACTOR)
Actor.Health(0@) = 1500
0245: set_actor 0@ walk_style_to "GANG2"
0446: set_actor 0@ immune_to_headshots 0
02E0:   actor 0@ aggressive
05DE: AS_actor 2@ walk_around_ped_path
07FE: set_actor 0@ fighting_style_to 5 6
01B2: give_actor 0@ weapon 23 ammo 199 // Load the weapon model before using this
Actor.WeaponAccuracy(0@) = 100
081A: set_actor 0@ weapon_skill_to 2
wait 0
jump @NULL_191

:NULL_191
wait 500
if
  Actor.Dead(0@)
Model.Destroy(#TEC9)
jump @NULL_217

:NULL_217
wait 50000
Actor.DestroyWithFade(0@)


are those code correct???
Users WebsitePM
  Top
 

 
fireguy109  
Posted: Sunday, Jul 29 2012, 14:04
Quote Post


Chronic post editor.
Group Icon
Group: Leone Family Mafia
Joined: Aug 30, 2010

us.gif

XXXXX



QUOTE (TLFdjobaw @ Sunday, Jul 29 2012, 04:38)
CODE
{$CLEO .cs}
thread "NULL"

:NULL_8
wait 0
if
0AB0:   key_pressed 50
else_jump @NULL_8
Model.Load(#MICRO_UZI)
Model.Load(#NULL)

:NULL_54
wait 0
if and
  Model.Available(#NULL)
  Model.Available(#MICRO_UZI)
else_jump @NULL_54
04C4: store_coords_to 4@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 0.0 3.0 -0.3
3@ = Actor.Angle($PLAYER_ACTOR)
0@ = Actor.Create(23, #NULL, 4@, 1@, 2@)
0173: set_actor 0@ Z_angle_to 3@
Actor.Health(0@) = 1500
0245: set_actor 0@ walk_style_to "GANG2"
0446: set_actor 0@ immune_to_headshots 0
05DE: AS_actor 0@ walk_around_ped_path
07FE: set_actor 0@ fighting_style_to 5 6
01B2: give_actor 0@ weapon 28 ammo 199 // Load the weapon model before using this
Actor.WeaponAccuracy(0@) = 100
081A: set_actor 0@ weapon_skill_to 2
wait 500

:NULL_191
wait 0
if
  Actor.Dead(0@)
Model.Destroy(#MICRO_UZI)
wait 50000
Actor.DestroyWithFade(0@)
0A93: end_custom_thread

You forgot to actually spawn him, arguably the most important part of the code. Here's a fixed version.
Users WebsitePMPlayStation Network
  Top
 

 
TLFdjobaw  
Posted: Monday, Jul 30 2012, 08:20
Quote Post


Un-skilled Collisions Modders
Group Icon
Group: Members
Joined: Jan 20, 2012

in.gif

XXXXX



okay.. thanks for that icon14.gif
Users WebsitePM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG