Смена ника без Reconnect

01010110 01100001 0110010

Потрачен
Автор темы
331
35
Что тут надо написать чтобы без реконнекта ник менялся?

NickChanger:
{$CLEO .cs}
0662: printstring "Created by xz"

:Noname_19
   not SAMP.Available
else_jump @Noname_40
wait 400
jump @Noname_19

:Noname_40
0B34: samp register_client_command "nick" to_label @Noname_184
chatmsg "{A3E900}[NickChanger]:{FFFFFF} Óñïåøíî çàãðóæåí. Àâòîð:{A3E900} xz" -1

:Noname_128
wait 0
if
  2@ == 1
else_jump @Noname_177
SAMP.Disconnect(0)
SAMP.SetGameState(4) = 1
wait 15500
SAMP.SetGameState(1) = 1
0B12: 2@ = 2@ XOR 1

:Noname_177
jump @Noname_128

:Noname_184
   SAMP.IsCommandTyped(0@)
0C17: 1@ = strlen 0@
if
  1@ > 0
else_jump @Noname_237
SAMP.SetLocalNickname(0@)
0B12: 2@ = 2@ XOR 1
jump @Noname_295

:Noname_237
chatmsg "{A3E900}[NickChanger]: {FFFFFF}Ââåäèòå: /nick [íèê]" -1

:Noname_295
SAMP.CmdRet