CLEO Help Cleo to change name without leaving the game

CLEO related
Status
Not open for further replies.

ollydbg

Active member
Joined
Jun 3, 2017
Messages
40
Reaction score
25
I need a cleo to change the name without disconnecting from the samp with a command like this / nick ("NICK")

Only a cleo to change that is not kcmds or randon namechanger there will be some for there

This is a I think I found on youtube but it does not work when using it stops the game

  Someone can make it work

{$CLEO .cs}
edd004
xD "TESTING /NICK BY EDD004"
xD "THX TO THE OTHER SCRIPTER!"
xD "IMMA NOOB SCRIPTER!"
thread "$NICKNAME"

if 
  8AF7: get_samp_base_to 30@
then 
    0A93: end_custom_thread
end
repeat 
    wait 400
until 0AFA: is_samp_structures_available
0B34: samp register_client_command "nick" to_label @NICK

while true
:WOOP
wait 0
xD "imma noob script......"
jump @WOOP

:NICK   
wait 0
0B35: samp 0@v = get_last_command_params
if
0AD4: 0@v = scan_string 0@v format "%s" 1@v //IF and SET
jf @NICKusage
0B35: samp 0@ = get_last_command_params
SAMP.Disconnect(0)
0AF8: samp add_message_to_chat "You are banned from this server" color 0x99CCFF
wait 500
0AF8: samp add_message_to_chat "LOL JK xD By Edd004" color 0x99CCFF
wait 500
0B27: samp set_gamestate 2
0B29: samp set_local_name "%s" 0@
0AF8: samp add_message_to_chat "Name Changed to '%s'" color 0xCCFF99 0@
wait 2000
0B27: samp set_gamestate 1
jump @WOOP

:NICKusage
wait 0
0AF8: samp add_message_to_chat "USAGE: /nick <name>" color 0xDD0000
jump @WOOP
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
40
Reaction score
25
0B36 said:
Then it will not be synced to the server and the previous name will be seen by everyone.
There is cleo that serves to change the name this kcmds.cs what is done with a command / be (nick) and then the server is restarted and the name is put

That's the one I'm looking for but in one code

sorry for my English :d
 

Byrryandy

New member
Joined
Jul 25, 2015
Messages
4
Reaction score
0
Code:
{$Cleo .cs}

thread "nick"

:nick
   SAMP.IsCommandTyped(0@)
if 
0AD4: 0@ = 0@ format "%s" 2@v
else_jump @nick_1
0B28: 0
SAMP.SetLocalNickname(2@v)
wait 15 
0B27: 1
SAMP.CmdRet

:nick_1
chatmsg "write your nickname" 65407 
SAMP.CmdRet
 
Status
Not open for further replies.
Top