04.06.2013, 02:04
(
Последний раз редактировалось Brandon_More; 04.06.2013 в 02:05.
Причина: .
)
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..
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.
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; } }
FYI: I am new to scripting.