faking steam id on amx_who...
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:
Code:
Code:
|
Code:
|
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 |
It's for length.
|
Quote:
...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... |
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: |
You seem to not understand strings. This is how a string works:
Code:
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.Code:
So, with that example, we can do this: Code:
Because with your example, it would look like this: Code:
Understand now? |
| All times are GMT -4. The time now is 16:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.