Raised This Month: $ Target: $400
 0% 

faking steam id on amx_who...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
diamond-optic
Veteran Member
Join Date: May 2005
Old 04-02-2006 , 12:14   faking steam id on amx_who...
Reply With Quote #1

well right now i have my admincmd hide my flags, which works correctly, for anyone with whatever flag i have it set to.... but now since I have a small 5digit steam id that stands out quite easily some ppl have memorized it, or written it down...etc etc..

so I kinda want to have it display a fake steam id for me so I can be a little more hidden heh (tho i guess status and stuff would still show correct id)

but anyway this is what ive got edited so far, i wont post the whole script cuase most of it has nothing to do with this, but if you want me to let me know...

but the problem im having is that its cutting off part of the new STEAM_0:1:###### everytime.. But each time it like cuts off a diff part of it.. sometimes it will show as "M_0:1:######" sometimes it'll be "TEAM_0:1:######" and so on in whatever variation you want... but its not like its different everytime i join and get a new fake steam id.. its everytime i open the console and type amx_who (like while in the same game, with the same name, with the same fake id)

so its sorta working, but the fact that it gets cut off is making it stand out just as much as having my normal short ID in with all the long ones that are around now...

im confused, which is easy cuase i dont totally know what im doing, as to whats wrong with it..

any help would be appreciated.. thanks ahead of time...

Code:
#define ADMIN_HIDE 16  //Change this for flags 0=flag a  1= flag b ...etc new fake_steam[33]   //for fake steam id

Code:
public cmdWho(id, level, cid) {     if (!cmd_access(id, level, cid, 1))         return PLUGIN_HANDLED     new players[32], inum, cl_on_server[64], authid[32], name[32], flags, sflags[32]     new lImm[16], lRes[16], lAccess[16], lYes[16], lNo[16]         format(lImm, 15, "%L", id, "IMMU")     format(lRes, 15, "%L", id, "RESERV")     format(lAccess, 15, "%L", id, "ACCESS")     format(lYes, 15, "%L", id, "YES")     format(lNo, 15, "%L", id, "NO")         get_players(players, inum)     format(cl_on_server, 63, "%L", id, "CLIENTS_ON_SERVER")     console_print(id, "^n%s:^n #  %-16.15s %-20s %-8s %-4.3s %-4.3s %s", cl_on_server, "nick", "authid", "userid", lImm, lRes, lAccess)         for (new a = 0; a < inum; ++a)     {         get_user_authid(players[a], authid, 31)         get_user_name(players[a], name, 31)         flags = get_user_flags(players[a])         get_flags(flags, sflags, 31)         if(flags&(1<<ADMIN_HIDE))  //if hidden, show z flag & such...         {             console_print(id,"%2d  %-16.15s %-20s %-8d %-4.3s %-4.3s z", players[a],name,fake_steam[inum],             get_user_userid(players[a]),"No","No")         }         else         {               console_print(id, "%2d  %-16.15s %-20s %-8d %-6.5s %-6.5s %s", players[a], name, authid,         get_user_userid(players[a]), (flags&ADMIN_IMMUNITY) ? lYes : lNo, (flags&ADMIN_RESERVATION) ? lYes : lNo, sflags)         }     }         console_print(id, "%L", id, "TOTAL_NUM", inum)     get_user_authid(id, authid, 31)     get_user_name(id, name, 31)     log_amx("Cmd: ^"%s<%d><%s><>^" ask for players list", name, get_user_userid(id), authid)         return PLUGIN_HANDLED }

Code:
public client_putinserver(id) {     new flags, sflags[32]         flags = get_user_flags(id)     get_flags(flags, sflags, 31)     if(flags&(1<<ADMIN_HIDE))   //if hidden, pick a steamid for this session         {         format(fake_steam[id], 32, "STEAM_0:1:%d", random_num(107320,8740918))         }         }
__________________
diamond-optic is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-02-2006 , 12:20  
Reply With Quote #2

Code:
new fake_steam[33][33]   //for fake steam id
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
diamond-optic
Veteran Member
Join Date: May 2005
Old 04-02-2006 , 12:25  
Reply With Quote #3

hmm ill try it out, but out of curiosity..


whats the double [33] do?

or does it cover the id and 32 part of this:

Code:
fake_steam[id], 32
__________________
diamond-optic is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-02-2006 , 12:28  
Reply With Quote #4

It's for length.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 04-02-2006 , 14:22  
Reply With Quote #5

Quote:
Originally Posted by Hawk552
Code:
new fake_steam[33][33]   //for fake steam id
changing it to that makes no id show up at all now...


...the wierd thing is.. the original way i had it, when i tested it on a local listen server it worked completely fine.. but then once i put it on my ded. server with other players on, thats when it started getting cut off...
__________________
diamond-optic is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 04-03-2006 , 14:37  
Reply With Quote #6

i dont know what happened...

but now the 1st way I was doing it (the way i posted) doesnt show anything now either... it def was showing parts of the fake id before...

but now its just blank where the id should be...

**edit**

doing a client print to check it.. i get this

Code:
real steam: STEAM_0:1:45891 fake steam:
so something is messed up now where its not setting the fake steam string im guessing.. tho i dont know why its not when it was before...
__________________
diamond-optic is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 04-03-2006 , 16:20  
Reply With Quote #7

You seem to not understand strings. This is how a string works:

Code:
new szMyString[6] = "Test." [0] == 'T' [1] == 'e' [2] == 's' [3] == 't' [4] == '.' [5] == ^0

The way you had it, if say for example id were 2, it would return 's', and just print everything from that point onward, and would look something like:

Code:
st.
Now, here's how the array I showed you works:

Code:
new szMyStr[32][6] = { "Test", ... } szMyStr[0][0] == 'T' szMyStr[0][1] == 'e' szMyStr[0][2] == 's' szMyStr[0][3] == 't' szMyStr[0][4] == '.' szMyStr[0][5] == ^0 szMyStr[1][0] == 'T' szMyStr[1][1] == 'e' // ... etc

So, with that example, we can do this:

Code:
new szMyStr[33][6] = {        "STEAM_0:1:234567"        "STEAM_0:0:1337"        "STEAM_0:0:16"        // etc...

Because with your example, it would look like this:

Code:
new szMyStr[13] = {       'S',       'T',       'E',       'A',       'M',       '_',       '0',       ':',       '0',       ':',       '1',       '6',       ^0 }

Understand now?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode