[Pedido] Verificar nick
#1

Um player tem o nick [BALLAS]Fulano ai eu queria que uma funзгo seja chamada apenas para os players que tem o [BALLAS] no nome ex: [BALLAS]Fulano,[BALLAS]Derp,[BALLAS]Maria:
ex:
pawn Код:
ifseoplayertiverballasnonick
{
// funзao
}
Jб procurei e nгo achei nada parecido
Reply
#2

Strfind
pawn Код:
new Nome[24];
GetPlayerName(playerid,Nome,24);
if(strfind(Nome,"[BALLAS]", false) != -1)
{
    //Vocк faz parte dos ballas.
}
Reply
#3

Quote:
Originally Posted by Gustavo_Araujo
Посмотреть сообщение
Strfind
pawn Код:
new Nome[24];
GetPlayerName(playerid,Nome,24);
if(strfind(Nome,"[BALLAS]", false) != -1)
{
    //Vocк faz parte dos ballas.
}
Vlw!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)