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
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