01.05.2016, 19:43
hello there
can someone help me to convert this command to get offline player offlineip
thanks
can someone help me to convert this command to get offline player offlineip
thanks
PHP код:
CMD:ip(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 1) {
if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /ip [playerid]");
new player1 = strval(params), string[128];
if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CMDMessageToAdmins(playerid,"IP");
new tmp3[50]; GetPlayerIp(player1,tmp3,50);
format(string,sizeof(string),"\"%s's\" ip is '%s'", pName(player1), tmp3);
return SendClientMessage(playerid,blue,string);
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}