Quantcast

Jump to content

» «
Photo

Script Query

1 reply to this topic
masternewport
  • masternewport

    Perfectio per insaniam

  • Members
  • Joined: 08 Nov 2012

#1

Posted 27 October 2013 - 10:16 AM Edited by masternewport, 27 October 2013 - 10:39 AM.

Hi guys,

 

I'm trying to make a CLEO script where if you stand in a red marker for a while CJ does an animation like he's robbing a store, gains money and a wanted level but at the same time peds around him in the interior go into a panic mode. However I'm quite a novice at CLEO and not sure how to make it work.

 

Here's my script so far. I will edit location and radius of the marker when everything else looks good. Does the below look right? And also how do you make it so peds around the interior go into a panic mode and the red marker disappears until you leave and come back without a wanted level?

 

Any help will be much appreciated

 

//-------------MAIN---------------
$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)
 
:NONAME_8
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @NONAME_8 
if 
00A4:   actor $PLAYER_ACTOR sphere 1 in_cube_cornerA -35.2222 -49.9957 1003.547 cornerB 2.0 2.0 1.0 
jf @NONAME_8 
wait 4000 
Player.Money($PLAYER_CHAR) += 2000
wait 500 
00BC: show_text_highpriority GXT 'ROB' time 3000 flag 1 
Player.SetMinWantedLevel($PLAYER_CHAR, 2)
jump @NONAME_8  

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#2

Posted 29 October 2013 - 07:57 PM

This code must be placed in main.scm:

$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)

so remove it from your cleoscript

 

how do you make it so peds around the interior go into a panic mode

requires advanced coding skills

 

 

and the red marker disappears until you leave and come back

make a 2. loop





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users