CLEO Help 0C48 & Color

CLEO related
Status
Not open for further replies.

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
17
Location
Romania
Code:
$P_1 = 152.0
$P_2 = 438.0



:Shanker_Test
  wait 0
  SAMP.IsCommandTyped(1@)
  0AD4: 2@ = scan_string 1@ format "%d %d %d" 3@ 4@ $HP
  00D6: if 
  0B23:  samp is_player_connected 3@ 
  004D: jump_if_false @ERROR
  0B36: samp 6@ = get_player_nickname 3@ 
  if
  4@ == 5
  then say " /f %s [%d] incepe Testul pentru Materials License." 6@ 3@
  $Test_OFF = 0
  $Materials = 1
  else 
  if
  4@ == 4
  then say " /f %s [%d] incepe Testul pentru Weapon License." 6@ 3@
  $Test_OFF = 0
  $Weapon = 1
  else
  if
  4@ == 3
  then say " /f %s [%d] incepe Testul pentru Fishing License." 6@ 3@
  $Test_OFF = 0
  $Fishing = 1 
  else
  if
  4@ == 2
  then say " /f %s [%d] incepe Testul pentru Sailing License cu %d HP. " 6@ 3@ $HP
  $Test_OFF = 0
  $Sailing = 1
  $HP = 0
  else
  if
  4@ == 1
  then say " /f %s [%d] incepe Testul pentru Flying License cu %d HP. " 6@ 3@ $HP
  $Test_OFF = 0
  $Flying = 1
  $HP = 0
  0C48: samp textdraw $Flying_TD create "Test" pos $P_1 $P_2
  END
  END
  END 
  END                                                          
  END
  4@ = 0
  SAMP.CmdRet

The Question is, how can I change textdraw Color?(Check at 4@ == 1)Can you give me an Example with Color green or smt like that?:).

P.S: if you can let it opened, I will come back when I have other questions :)).
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
SA-MP textdraws are the same with GTA textdraws, if you use those then you can change the color with
Code:
0C52: samp textdraw 0@ set_letter_size 1@ 2@ color 3@

Color format is RGBA, i think.
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
17
Location
Romania
App, e posibil ca atunci cand fac poza cu aparatu foto (pe samp) sa nu-mi dispara Textdraw-urile impuse de server?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
Please see the rules and avoid writing in another language other than english, so in the future, people who also have the same problem or question as you can get some useful information out of this topic.

No, because camera screenshots don't disable textdraws, the screenshot is taken on the current frame before the textdraws are rendered.
 
Status
Not open for further replies.
Top