05.05.2011, 17:40
pawn Код:
CMD:activateaccount(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You need to be admin to use these command");//These is just for rcon admin so you edit it to your system
if(sscanf(params, "s", params)) return SendClientMessage(playerid,red,"You need to enter user nick");
new file[128];
format(file,sizeof(file),"cServer/kasutajad/%.ini",params); // edit .ini to your extansion
if(!dini_Exists(file)) return SendClientMessage(playerid,red,"That user does not exist");
dini_IntSet(file,"AccountActivated", 1);//I guess these is right you dont need to edit it
return 1;
}
And i must note that these is just if player is not connected !