UG-Base Gamehacking

Full Version: get full name
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
if samp.IsCommandTyped("check")
then
for [email protected] = 0 to 150
if 0B23:  samp is_player_connected [email protected]
and if 0C29: [email protected] = stristr sz1 [email protected] sz2 "_lastname"
or if 0C29: [email protected] = stristr sz1 [email protected] sz2 "_lastname"
then
get_player_nickname [email protected] 
then
0AF8: samp add_message_to_chat "%s is connected" [email protected]

wanted to make a cleo that could tell me if people with the same lastname were online by scanning all online ppl but it didn't worked
if somebody could me

thx
Now you do staff

{$CLEO .cs}
0000:


REPEAT
  WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

0B34: samp register_client_command "CHECK" to_label 


WHILE TRUE
wait 0

FOR [email protected] = 0 TO 999

IF
0B23:  samp is_player_connected [email protected]
THEN
   IF
   [email protected] == TRUE
   THEN
       0B36: samp [email protected] = get_player_nickname [email protected]
       0AC8: [email protected] = allocate_memory_size 260
       0AD3: [email protected] = format "%s" [email protected]
       IF
       0AD4: $NOT_USED = [email protected] "%[^_]_%[^_]" [email protected] [email protected]  //[email protected] = first name, [email protected] = last name
       THEN
           /// Do test with [email protected]
           CHATMSG "%s" -1 [email protected]
           [email protected] = FALSE
       ELSE
           CHATMSG [email protected] -1
           [email protected] = FALSE
       END
   END
END

END

END

:cmd
[email protected] = TRUE
0B43: samp cmd_ret