24.08.2015, 19:08
Resolvido
CMD:getid(playerid, params[]){
new IDX,string[40];
if(sscanf(params, "u",IDX)){
SendClientMessage(playerid, -1, "uso: /getid( parte do nick )");
return 1;
}
if(IsPlayerConnected(IDX)){
if(IDX != INVALID_PLAYER_ID){
new nome[MAX_PLAYER_NAME];
GetPlayerName(IDX, nome, sizeof(nome));
format(string, sizeof(string), "ID: %d || NickName: %s",IDX,nome);
SendClientMessage(playerid, -1, string);
}
}
else
{
SendClientMessage(playerid, -1, "Este Nick Nгo Foi Encontrado!");
}
return 1;
}
new Nome[MAX_PLAYER_NAME]; GetPlayerName(playerid, Nome, sizeof(Nome)); if(strfind(Nome, Line2, true) |