Admin system :(
#4

pawn Код:
new INI:file = INI_Open(Path(playerid)); //will open their file
        INI_SetTag(file,"Player's Data");//We will set a tag inside of user's account called "Player's Data"
        INI_WriteInt(file,"AdminLevel",pInfo[playerid][Adminlevel]); //If you've set his/her admin level, then his/her admin level will be saved inside of his/her account
        INI_WriteInt(file,"VIPLevel",pInfo[playerid][VIPlevel]);//As explained above
        INI_WriteInt(file,"Money",GetPlayerMoney(playerid));//We will save his money inside of his account
        INI_WriteInt(file,"Scores",GetPlayerScore(playerid));//We will save his score inside of his account
        INI_WriteInt(file,"Kills",pInfo[playerid][Kills]);//As explained above
        INI_WriteInt(file,"Deaths",pInfo[playerid][Deaths]);
        INI_WriteInt(file,"Muted",pInfo[playerid][Muted]);
        INI_WriteInt(file,"Banned",pInfo[playerid][Banned]);//As explained above
        INI_Close(file);
heres my registrering code
Reply


Messages In This Thread
Admin system :( - by James Coral - 12.04.2014, 16:21
Re: Admin system :( - by bool - 12.04.2014, 16:23
Re: Admin system :( - by Sascha - 12.04.2014, 16:24
Re: Admin system :( - by James Coral - 12.04.2014, 17:18
Re: Admin system :( - by Sascha - 12.04.2014, 17:22
Re: Admin system :( - by James Coral - 12.04.2014, 17:24
Re: Admin system :( - by bool - 12.04.2014, 17:27
Re: Admin system :( - by James Coral - 12.04.2014, 17:30

Forum Jump:


Users browsing this thread: 1 Guest(s)