31/12/2021 00:01 
	
	
	Código:
// Essa função pesquisa os Nicks de jogador logado, retorna o ID do jogador se encontrar... senão acha retorna -1
stock findnomeplayer(nickplayer[]){
    new stringCmp[24], IntnameCmp = 0, MaxIntnameCmp = 0;
    new nameCmp[24];
    for(new i = 0; i < MAX_PLAYERS; i++){
        if(IsPlayerConnected(i)){
            //SendClientMessageToAll(0xEBEB00F6, nickplayer);
            format(nameCmp, 24, "%s", InfoPlayer[i][nome]);
            //SendClientMessageToAll( 0xEBEB00F6, nameCmp);
            if(strfind(nameCmp, nickplayer, true) != -1){
                IntnameCmp = strfind(nameCmp, nickplayer, true);
                //format(stringCmp, 24,"%i",IntnameCmp);
                //SendClientMessageToAll(0xEBEB00F6, stringCmp);
                MaxIntnameCmp = strlen(nickplayer);
                //format(stringCmp, 24,"%i",MaxIntnameCmp);
                //SendClientMessageToAll(0xEBEB00F6, stringCmp);
                strmid(stringCmp, nameCmp, IntnameCmp, MaxIntnameCmp);
                //SendClientMessageToAll(0xEBEB00F6, stringCmp);
                return i;
            }
        }
    }
    return -1;
}
// By SysnerÚtil para procurar um ID pelo Nick, sem ser necessário informar o Nick inteiro
Isso pode ser usado no seu comando /id por exemplo...

	   
	
