Checking all offline accounts for admin status.
#1

I am trying to create a command: /oadmins and it shows all Offline admins but i don't want to create any extra Scriptfiles.. is their anyway that i can do this? I am using dudb.sav.

I try'd this but obviously to experianced scripters it dosent work..
Код:
COMMAND:oadmins(playerid, params[])
{
    new stringa[MAX_STRING];
	PlayerLoop(i)
	{
		if(PlayerInfo[playerid][power]) return SendClientError(playerid, CANT_USE_CMD);
		new iFile[MAX_PLAYER_NAME+10];
		format(iFile,sizeof(iFile),"%s.dudb.sav",iFile);
		SendClientMessage(playerid, COLOR_BLUE, "Admins Offline:");
		format(stringa,sizeof(stringa),"%s - Level: %d - Laston: %d",iFile,dini_Int(iFile,"power"),dini_Int(iFile,"lastonline"));
		SendClientMessage(playerid,COLOR_GREY,stringa);
		return 1;
	}
}
please dont comment if you dont have anything positive to say e.g. Noob, you sux.. or OMG not even close.. I come here to get support.. and any given is 100% appreciated.

FYI: I am new to scripting.
Reply


Messages In This Thread
Checking all offline accounts for admin status. - by Brandon_More - 04.06.2013, 02:04
Re: Checking all offline accounts for admin status. - by [HiC]TheKiller - 04.06.2013, 06:34
Re: Checking all offline accounts for admin status. - by DRIFT_HUNTER - 04.06.2013, 06:54

Forum Jump:


Users browsing this thread: 2 Guest(s)