Raised This Month: $ Target: $400
 0% 

Change authid


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Killer zm
Senior Member
Join Date: Jun 2011
Old 01-08-2013 , 17:44   Change authid
Reply With Quote #1

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


Last edited by Killer zm; 01-08-2013 at 17:44.
Killer zm is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-08-2013 , 23:38   Re: Change authid
Reply With Quote #2

I smell something fishy. Change it manually.
__________________
fysiks is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 01-09-2013 , 03:08   Re: Change authid
Reply With Quote #3

i KNOW WHAT HE WHAT, but it's illigel.
__________________
simanovich is offline
Killer zm
Senior Member
Join Date: Jun 2011
Old 01-09-2013 , 04:34   Re: Change authid
Reply With Quote #4

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 .
Killer zm is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-09-2013 , 05:25   Re: Change authid
Reply With Quote #5

Quote:
Originally Posted by Killer zm View Post
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
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Killer zm
Senior Member
Join Date: Jun 2011
Old 01-09-2013 , 06:26   Re: Change authid
Reply With Quote #6

i dont want to modify the plugin that save level or plugin that save ammo
Killer zm is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-09-2013 , 07:24   Re: Change authid
Reply With Quote #7

Why? Its more easily than what you are requesting.
__________________

Last edited by Neeeeeeeeeel.-; 01-09-2013 at 07:25.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Killer zm
Senior Member
Join Date: Jun 2011
Old 01-09-2013 , 07:46   Re: Change authid
Reply With Quote #8

ok "banned" but how to find the authid that i want to "banned" with a command even the authid is not in game ?
Killer zm is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 01-09-2013 , 08:53   Re: Change authid
Reply With Quote #9

Quote:
Originally Posted by Killer zm View Post
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?
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
Killer zm
Senior Member
Join Date: Jun 2011
Old 01-09-2013 , 09:22   Re: Change authid
Reply With Quote #10

... 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 .

Last edited by Killer zm; 01-09-2013 at 09:24.
Killer zm is offline
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 13:35.


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