26.05.2014, 21:09
pawn Код:
if(strcmp(cmd, "/pinfo", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pAdmin] >= 5)
{
tmp = strtok(cmdtext,idx);
new playersip[256];
if(!strlen(tmp))
{
SendClientMessage(playerid,Vermelho,"| ERRO | /pinfo [Players ID]");
return 1;
}
giveplayerid = ReturnUser(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerIp( giveplayerid,playersip,sizeof(playersip));
format(string, sizeof(string), "Player: %s IP: %s",giveplayer,playersip);
SendClientMessage(playerid,Vermelho,string);
}
return 1;
}