18.01.2015, 20:17
In case you have zcmd and sscanf you could do something like:
pawn Code:
COMMAND:checkadmin(playerid, params[])
{
new targetname[MAX_PLAYER_NAME];
if(sscanf(params, "s[MAX_PLAYER_NAME]", targetname)) return SendClientMessage(playerid, -1, "/checkadmin [name]");
// I have no experience with y_ini so from here you have to do it youself. I don't know if there's a function to check if
// a file with the targetname exists. If the file does not exists send a clientmessage to say that that player does not exist
// and if the file is found, read the data with INI_Int.
return 1;
}