//get number of dialog elements
0B54: samp 1@ = listbox_items_count
//substract one from total cout
1@ -= 1 //last item is actually the null terminator
chatmsg "num of elements %d" -1 1@
for 0@ = 0 to 1@
alloc 2@ = 1024
0B5B: samp get_listbox_item 0@ text_to 2@
chatmsg "element %d -...
No problem.
For OnFoot Recorder left add only commands to record , but this is hardest part..
Anyway i will make it when i get way much more free time.
For that i have to make new code from scratch, based on " samp register client command " memories and stuff with that.
But like you said if admins or owner really want to see what you writing...
Owner for admins can add log to see what king stuff you sending to server, no matter it is legal...
OnFoot Recorder v2
~ ~ Upadate log ~ ~
1. Fixed bug with climbing / ledges , actor have been stuck when tried to climb on roof or any thing for climbing..
2. No more " Unknown command " message
3. Recording when you pressing left or right mouse buttons..
~~ For Name Tag Stuff ~~
Looks like it is a player 3d label, so you should get players label information from 3d text pool.
I have been started working with 3d text stuff, but because of a lot days working i haven't time go forward.
Here some my working stuff
R1
IF 0AA2: 31@ = "samp.dll"...
Good snippet, good job @monday
I used it so many times..
Improvements:
1. Included converting to lowercase
2. Removed strlen snippet requirement
:IfTextContains
/*
0AC8: 1@ = allocate_memory_size 1024
0AD3: 1@ = format "my string to compare"
IF 0AB1: @IfTextContains 2 String1 0@...
There's two ways to get player id.
1.:
https://ugbase.eu/threads/some-snippets.20983/page-4#post-131329
2.:
https://ugbase.eu/threads/samp-get-player-id-using-actor-handle.22355/
Or.., you mean your own id..??
You can do better way.:
Get chat text.
Delete colors from text.
Compare one part of text.
Get digits from text.
Send command with results.
https://ugbase.eu/threads/snippet-get-digits-from-text.19751/
That simple fact.., here always coming a lot of players but only few can properly explain what they imaging in their heads.
I guess we are some kind Houdini and probably we able to read minds..
Most of them getting ignored only because of that..
{$CLEO .cs}
0000:
WAIT 8500
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
IF 0AAB: file_exists "CLEO\FpsLimiter.ini"
THEN
0AF0: 0@ = get_int_from_ini_file "CLEO\FpsLimiter.ini" section "Settings" key "FpsLimit"
0AB1: @FPS_UNLOCK 0
0AB1...
:FPSUNLOCK
{
0.3.DL
0AB1: @FPSUNLOCK 0
}
IF 0AA2: 31@ = "samp.dll"
THEN
31@ += 0xA2400
0A8D: 30@ = read_memory 31@ size 4 virtual_protect 1
IF NOT 30@ == 0x5051FF15
THEN 0A8C: write_memory 31@ size 4 value 0x5051FF15 virtual_protect 1
END
END
0AB2: ret 0
{$CLEO .cs}
0000:
wait 8500
while true
wait 0
if 0256: player $PLAYER_CHAR defined
then
for 0@ = 0 to 2048 // 2048 = max TextDraw ID in decimal
if 0AB1: @IsSampTextDrawExist 1 TextDrawID 0@
then
0AB1: @GetTextDrawText 1 TextDrawID 0@ _Returned: Text 1@...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.