Quantcast

Jump to content

» «
Photo

[SA] Show wanted level in SAMP server

1 reply to this topic
Heinsenberg
  • Heinsenberg

    Player Hater

  • Members
  • Joined: 07 Dec 2013

#1

Posted 07 December 2013 - 01:54 AM Edited by Heinsenberg, 07 December 2013 - 01:58 AM.

Hello, I need a file that shows on screen the player wanted level. I found this code, but it doesn't work on SAMP Servers. In Single Player, it works perfectly, but I need that the file works in SAMP.

 

Here is the code:

 

{$CLEO .cs}
THREAD "Fag"

:START
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @START
03F0: enable_text_draw 1
01C0: 14@ = player $PLAYER_CHAR wanted_level
033F: set_text_draw_letter_size 0.4 1.1
081C: draw_text_outline 1 RGBA 0 0 0 255
0340: set_text_draw_RGBA 126 255 0 255
045A: draw_text_1number 514.0 66.0 GXT 'NUMBER' number 14@  // ~1~
jump @START

 

 

I want to combine the GTA IV HUD with this file, because in SAMP, the stars don't appear with this HUD.

 

Here, a picture of the file, but only works on single player. The green number '0' indicates the wanted level.

 

0yznAiX.png

 

Can you help me?


aStiffSausage
  • aStiffSausage

    Formerly Oksu

  • Members
  • Joined: 30 Sep 2010
  • Finland

#2

Posted 07 December 2013 - 02:01 AM

Your best bet would be not to use IV HUD, since I bet SA:MP won't use regular wanted level system as singleplayer does. Some addresses and functions are different in SA:MP, thus most mods don't work properly or just crash.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users