/sms ID

Статус
В этой теме нельзя размещать новые ответы.

diva

Известный
Автор темы
248
44
hello, where i can find CLEO vhen, someone text me in game /sms FYP to > blankas > hello, jobani gobnik
soo, what i need? i need dont' write all nick name player but just ID and text him back.

here code.

{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

0B34: "sms" @Command

alloc 4@ 200

WHILE TRUE
WAIT 0
END

:Command
0B35: 0@ = get_last_command_params
if
0AD4: 31@ = scan_string 0@ format "%d %s" 1@ 4@ //IF and SET
then
2@ = SAMP.GetActorHandleByPlayerID(1@)
0B36: samp 3@ = get_player_nickname 2@
0AF8: "You say: /sms %s %s" -1 3@ 4@
end
 
202
93
hello, where i can find CLEO vhen, someone text me in game /sms FYP to > blankas > hello, jobani gobnik
soo, what i need? i need dont' write all nick name player but just ID and text him back.

here code.

{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA: SAMP_IS_READY

0B34: "sms" @Command

alloc 4@ 200

WHILE TRUE
WAIT 0
END

:Command
0B35: 0@ = get_last_command_params
if
0AD4: 31@ = scan_string 0@ format "%d %s" 1@ 4@ //IF and SET
then
2@ = SAMP.GetActorHandleByPlayerID(1@)
0B36: samp 3@ = get_player_nickname 2@
0AF8: "You say: /sms %s %s" -1 3@ 4@
end
I'm don't understand you correct, what you need? What problems you have?
CLEO:
:Command
IF 0B35: 0@ = get_last_command_params
THEN
    ALLOC 2@ 64
    0AA5: call 0x8220AD num_params 4 pop 4 params 2@ 1@v "%d %s" 0@ // sscanf(0@, "%d %s", 1@v, 2@)
    IF 0B23:  samp is_player_connected 1@
    THEN 
        0B36: samp 3@ = get_player_nickname 1@
        0AF8: "You say: /sms %s %s" -1 3@ 2@
    END
    FREE 2@
END
Samp.CmdRet()
 

diva

Известный
Автор темы
248
44
I'm don't understand you correct, what you need? What problems you have?
CLEO:
:Command
IF 0B35: 0@ = get_last_command_params
THEN
    ALLOC 2@ 64
    0AA5: call 0x8220AD num_params 4 pop 4 params 2@ 1@v "%d %s" 0@ // sscanf(0@, "%d %s", 1@v, 2@)
    IF 0B23:  samp is_player_connected 1@
    THEN
        0B36: samp 3@ = get_player_nickname 1@
        0AF8: "You say: /sms %s %s" -1 3@ 2@
    END
    FREE 2@
END
Samp.CmdRet()
i don't need write all NICK_NAME player, just write /sms id or something like that. in my server i need write his name Itz_V /sms ID dont working.
 
Статус
В этой теме нельзя размещать новые ответы.