27.08.2016, 07:53
is it possible to make /offlineaka from the code below ??
Код:
CMD:aka(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 3) { if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /aka [playerid]"); new player1 = strval(params), str[128], tmp3[50]; if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) { GetPlayerIp(player1, tmp3, 50); format(str, sizeof(str), "A.K.A: [%s id:%d] [%s] %s", pName(player1), player1, tmp3, dini_Get("ladmin/pAdmin/aka.txt", tmp3)); return SendClientMessage(playerid, COLOR_WHITE, str); } else return SendClientMessage(playerid, red, "Player is not connected or is yourself"); } else return SendClientMessage(playerid, red, "ERROR: You need to be level 3 to use this command"); }