How to reset all Admin levels - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to reset all Admin levels (
/showthread.php?tid=413266)
How to reset all Admin levels -
captainjohn - 04.02.2013
Hi, I currently have over 5,000 registered accounts on my server.
It's a server where a lot of people have Admin Level to enable them to do more things.
Is it possible I can reset all these 5,000 Admin Levels to level 0 without having to manually go through every user account?
AW: How to reset all Admin levels -
Blackazur - 04.02.2013
Maybe try to script something which resets the Admin Level of all Players.
Re: How to reset all Admin levels -
DiGiTaL_AnGeL - 04.02.2013
pawn Код:
YCMD:wipeadmin(playerid, params[], help)
{
#pragma unused params, help
for(new i=0 ; i<MAX_PLAYERS ; i++)
{
your admin variable = 0;
}
return 1;
}
Was it so hard?
Re: How to reset all Admin levels -
Djole1337 - 04.02.2013
Are you using MySQL ?
Re: How to reset all Admin levels -
Kirollos - 04.02.2013
Quote:
Originally Posted by DiGiTaL_AnGeL
pawn Код:
YCMD:wipeadmin(playerid, params[], help) { #pragma unused params, help for(new i=0 ; i<MAX_PLAYERS ; i++) { your admin variable = 0; } return 1; }
Was it so hard?
|
he wants to demote all the 5000 player accounts he got. not onlines.
@captainjohn , if youre using mysql, then use Update query to set all admin lvls to 0.