[Ajuda] TAG
#1

Sу os players com a tag [Teste] Poderiam abrir o portao

Eu deveria fazer como ?

PHP код:
if (GetPlayerName(playerid, [Teste])
{
    
//
    
return 1;

Assim nao da !!, da uma forзa ae glr
Reply
#2

pawn Код:
new Nome[24];
    GetPlayerName(playerid, Nome, 24);
    if(strfind(Nome, "[Teste]", true) != -1)
    {
        // ...
    }
Reply
#3

pawn Код:
if(strfind(GetName(playerid), "[teste]", true) == 0){
            //funзгo
        }
fassa uma funзгo para n ter que ficar getando o nome do player como fiz


pawn Код:
stock GetName(playerid)
{
    new
        _PlayerName[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, _PlayerName, MAX_PLAYER_NAME);
    return _PlayerName;
}
Reply
#4

Quote:
Originally Posted by Supera
Посмотреть сообщение
pawn Код:
new Nome[24];
    GetPlayerName(playerid, Nome, 24);
    if(strfind(Nome, "[Teste]", true) != -1)
    {
        // ...
    }
Mais isso funcionaria, exemplo:

[Teste]Fulano
e
Fulano

Sу o Fulano com a TAG [Teste] conseguiria realizar o comando ?
Reply
#5

Todos os nicks com a Tag [Teste] iriam conseguir realizar o comando
Reply
#6

Quote:
Originally Posted by Supera
Посмотреть сообщение
Todos os nicks com a Tag [Teste] iriam conseguir realizar o comando
+REP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)