30.06.2018, 16:42
pawn Код:
CMD:ip(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "[!] Vocк nгo й ADM [!]");
new id, ip[16], ping, Str[128];
if(sscanf(params, "u", id)) return SendClientMessage(playerid, CINZA, "Use: /ip [ID do Player]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, VERMELHO, "[!] ID Offline [!]");
GetPlayerIp(id, ip, sizeof(ip));
ping = GetPlayerPing(id);
format(Str, sizeof(Str), "Informaзoes do player IP:%d PING:%d " ip,ping);
SendClientMessage(playerid, VERDE, Str);
return 1;
}