Resource icon

CLEO Release Random Name Changer [69,101 usernames]

CLEO related
Status
Not open for further replies.

wavelengthzero

Active member
Joined
Feb 18, 2014
Messages
45
Reaction score
0
This cleo will give you 3 options, change your name to a random number, random username or a username you enter. Once you change your name you will automatically reconnect to the server with that name.

Commands:
/cn - Changes to a random name out of a list of 69,101 names
/cnt <Name> - Changes to your name of choice
/cnd - Changes your name to a random number from 111111 to 999999999999

Bugs:
I found none, but if you do then please report them here.

Source:
Code:
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP
wait 0 
if 
0AAB:   file_exists "CLEO\names.ini" 
jf @Label404  
0B34: samp register_client_command "cn" to_label @Label314 
0B34: samp register_client_command "cnt" to_label @Label323 
0B34: samp register_client_command "cnd" to_label @Label332 
30@ = 0 

:Label44
wait 0 
if or
  30@ == 1 
  30@ == 2 
  30@ == 3 
jf @Label44 
   SAMP.IsCommandTyped(4@)
if 
  30@ == 1 
jf @Label184 
0209: 1@ = random_int_in_ranges 1 69101 
format 2@v "%d" 1@ 
0AF4: 3@v = read_string_from_ini_file "CLEO\names.ini" section "NAMES" key 2@v 
SAMP.Disconnect(0)
SAMP.SetLocalNickname(3@v)
wait 500 
SAMP.SetGameState(1) = 1
30@ = 0

:Label184
if 
  30@ == 2 
jf @Label243 
0AD4: 5@ = scan_string 4@ format "%s" 6@v  
SAMP.Disconnect(0)
SAMP.SetLocalNickname(6@v)
wait 500 
SAMP.SetGameState(1) = 1
30@ = 0

:Label243
if 
  30@ == 3 
jf @Label244 
0209: 7@ = random_int_in_ranges 111111 1E12 
format 8@v "%d" 7@ 
SAMP.Disconnect(0)
SAMP.SetLocalNickname(8@v)
wait 500 
SAMP.SetGameState(1) = 1
30@ = 0

:Label244
goto @Label44

:Label314
30@ = 1 
SAMP.CmdRet

:Label323
30@ = 2 
SAMP.CmdRet

:Label332
30@ = 3 
SAMP.CmdRet

:Label404
wait 0 
print "Missing file: names.ini" 2500 
0A93: end_custom_thread


The list of usernames I used can be found here: https://github.com/maryrosecook/commonusernames
Originally it was 86,000 usernames, but I edited them so there's none less than 5 or more than 20 in length. You can add your own in the .ini file the cleo grabs the list from. For bulk adding you'll need Notepad++ and some knowledge of regex.

I originally made this for myself and thought I'd release it here since I've found a lot of use for it. Hopefully you like it :)

It requires SAMPFUNCS 5.3.3 since I compiled using that.

[attachment=4469]
 

Attachments

  • namechanger.zip
    389.5 KB · Views: 546

wavelengthzero

Active member
Joined
Feb 18, 2014
Messages
45
Reaction score
0
I just realized the last name in the .ini will never be picked since 0209 doesn't use the last random number: http://gtag.gtagaming.com/opcode-database/opcode/0209/

It won't matter since there's 69,101 to choose from, but here's the fixed version anyway

[attachment=4479]
 

Attachments

  • namechanger.zip
    392.8 KB · Views: 140

ramez

Active member
Joined
Jun 11, 2015
Messages
120
Reaction score
0
Location
GB
wavelengthzero said:
I just realized the last name in the .ini will never be picked since 0209 doesn't use the last random number: http://gtag.gtagaming.com/opcode-database/opcode/0209/

It won't matter since there's 69,101 to choose from, but here's the fixed version anyway
 

ramez

Active member
Joined
Jun 11, 2015
Messages
120
Reaction score
0
Location
GB
Nice job bro but i need change name without reconnect or with very fast reconnect auto spawn,If any one was able to do that would be wonderful.


wavelengthzero said:
I just realized the last name in the .ini will never be picked since 0209 doesn't use the last random number: http://gtag.gtagaming.com/opcode-database/opcode/0209/

It won't matter since there's 69,101 to choose from, but here's the fixed version anyway

Nice job bro but i need change name without reconnect or with very fast reconnect auto spawn,If any one was able to do that would be wonderful.
 
Status
Not open for further replies.
Top