CLEO Help PingDetect Cleo help

CLEO related
Status
Not open for further replies.

afattahniz

Active member
Joined
Jun 8, 2015
Messages
74
Reaction score
0
hi guyz i wanted to make a cleo hack which detects all player's pings and if someone ping more than 500 it should show their name on my samp screen but i don't know coding properly so i do not know how to do it i coded a little bit and now it only shows me 1 player ping and all other player name and ping is behind that player name

here is code 
Code:
{$CLEO .cs}
     
    0000: NOP
    18@ = Render.CreateFont("Verdana", 10, 12)
    alloc 19@ 64
    alloc 21@ 64 
    
    :MAIN
    wait 0
    if
    0ADC: test_cheat "4"       
    jf @MAIN
    printf "~y~Ping Detect: ~r~ON~b~!" time 1500
    
    :MAIN_2
    wait 0 
    if
    Player.Defined($PLAYER_ACTOR)
    then                       
    for 30@ = 0 to 1000
    if 
    0B23:  samp is_player_connected 30@
    then  
    0B2A: samp 2@ = get_player_ping 30@
    20@ = SAMP.GetPlayerNickname(30@)
    17@ = SAMP.GetPlayerColor(30@) 
    if 
    2@ > 500
    then
    format 19@ "%s[%d]Ping:[%d]" 20@ 30@ 2@
    Render.DrawText(18@, 19@, 146, 388, 17@)
    end
    end 
    end  
    end
    jump @MAIN_2
            
    
 

Attachments

  • Untitled.png
    Untitled.png
    95.9 KB · Views: 97
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Make a variable counter and increase\decrease it everytime you draw a nickname on the screen
Based on that variable offset position for next nickname (variable * height\pad\offset of text)
 
Status
Not open for further replies.
Top