AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change authid (https://forums.alliedmods.net/showthread.php?t=205264)

Killer zm 01-08-2013 17:44

Change authid
 
How can i change an authid from users.ini (i mean replace with another) with a admin comand...

i tried this stock for search the authid but is not working ...

PHP Code:

stock File_Authid(authid[],line[],len)
{
    new 
Buffer[128],Line,TxtLen
    
while(read_file(users_file,Line++,Buffer,127,TxtLen))
        if(
containi(Buffer,authid) != -1)
        {
            
copy(line,len,Buffer)
            return 
1
        
}
    
    return 
0



fysiks 01-08-2013 23:38

Re: Change authid
 
I smell something fishy. Change it manually.

simanovich 01-09-2013 03:08

Re: Change authid
 
i KNOW WHAT HE WHAT, but it's illigel.

Killer zm 01-09-2013 04:34

Re: Change authid
 
why ilegal ?
I give users.ini like an example i need to change authid in a .txt file where is saved the level of players on authid and is like in users.ini ...

I have a plugin that save ammo packs for zombie plague mode and levels (zombie xp) and i am using fvault for saving ... and is a file with saving ammo packs and a file with saving level ....

levels.txt

"authid" "level"

and ammobank.txt
"authid" "ammo"

and i have some rules ... and when a player break the rules then i want to punish him by replaces his steamid with something ... so he cant load his ammo and level ...but i want to do this without fvault ...i want to do it like in my stock File_Authid...this is why i give users.ini example ...because was more easy to explain .

Neeeeeeeeeel.- 01-09-2013 05:25

Re: Change authid
 
Quote:

Originally Posted by Killer zm (Post 1870132)
why ilegal ?
I give users.ini like an example i need to change authid in a .txt file where is saved the level of players on authid and is like in users.ini ...

I have a plugin that save ammo packs for zombie plague mode and levels (zombie xp) and i am using fvault for saving ... and is a file with saving ammo packs and a file with saving level ....

levels.txt

"authid" "level"

and ammobank.txt
"authid" "ammo"

and i have some rules ... and when a player break the rules then i want to punish him by replaces his steamid with something ... so he cant load his ammo and level ...but i want to do this without fvault ...i want to do it like in my stock File_Authid...this is why i give users.ini example ...because was more easy to explain .

You can do something like this
Code:

/* string, int, int */
"authid" "exp" "banned"

If banned == 1 don't load points for him else you load them

Killer zm 01-09-2013 06:26

Re: Change authid
 
i dont want to modify the plugin that save level or plugin that save ammo

Neeeeeeeeeel.- 01-09-2013 07:24

Re: Change authid
 
Why? Its more easily than what you are requesting.

Killer zm 01-09-2013 07:46

Re: Change authid
 
ok "banned" but how to find the authid that i want to "banned" with a command even the authid is not in game ?

Neeeeeeeeeel.- 01-09-2013 08:53

Re: Change authid
 
Quote:

Originally Posted by Killer zm (Post 1870169)
ok "banned" but how to find the authid that i want to "banned" with a command even the authid is not in game ?

You want to ban someone when he isn't online and you haven't his authid?

Killer zm 01-09-2013 09:22

Re: Change authid
 
... you dont understant ...

an player connect to server and play .. his ammo packs and level is saved on disconnect on his authid in two different .txt files ... so i want to ban that authid with a command from server ... where to open the file, search for a authid that i type on command, then ban that authid ...if you dont know what i am talking about then let other guy to give a reply .


All times are GMT -4. The time now is 13:35.

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