Olá estou com um problema nas tag's exemplo de nick: [TAG]JoaoRoberto
Tenho um comando de /Presente:
Problema esta nisso aqui: só funciona quando player não possui uma tag
Nesse comandos quando um player utiliza a tag [TAG] do lado do nick do jogador, quando o player digita o /Presente ele pode pegar varios presente que é somente pode pegar uma vez, quando um player não possui uma tag ele só pega uma vez, quando ele tem a tag ele consegue pegar varias vezes o presente, alguem pode me ajudar?
	
	
	
Tenho um comando de /Presente:
Código PHP:
CMD:presente(playerid, params[])
{
    new
       ID_P [ 50 ],
       pPresente [ 50 ]
    ;
    if(sscanf(params, "s", ID_P))return MensagemDupla(playerid, "{FF0000}[ > ] Use: /Presente [ Código ]", "{FF0000}[ > ] Use o comando para receber uma giftcard do sevidor.");
    format(pPresente, sizeof pPresente, Presentes, ID_P);
    if(!DOF2_FileExists(pPresente)) return Msg(playerid, VERMELHO, "[ x ] Não existe nenhum giftcard com esse código!");
    if(DOF2_GetInt(pPresente, Nome(playerid)) == 1)
    {
       SendClientMessage(playerid, VERMELHO, "[ x ] Você já utilizou esta giftcard !");
       PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
       return 1;
    }
    if( DOF2_GetInt( pPresente, "Item" ) == 1 )//Dinheiro
    {
       SetarGRANA_Presente(playerid, DOF2_GetInt(pPresente, "Presente"));// VALOR
       DOF2_SetString(pPresente, Nome(playerid), "1");
       PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
    }
    else if( DOF2_GetInt( pPresente, "Item" ) == 2 )//Set
    {
       SetarSET_Presente(playerid, DOF2_GetInt( pPresente, "Presente" ));// MODELO
       DOF2_SetString(pPresente, Nome(playerid), "1");
       PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
    }
    else if( DOF2_GetInt( pPresente, "Item" ) == 3 )//Moedas
    {
       SetarMoedas_Presente(playerid, DOF2_GetInt(pPresente, "Presente"));// VALOR
       DOF2_SetString(pPresente, Nome(playerid), "1");
       PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
    }
    return 1;
} 
Problema esta nisso aqui: só funciona quando player não possui uma tag
Código PHP:
    if(DOF2_GetInt(pPresente, Nome(playerid)) == 1)
    {
       SendClientMessage(playerid, VERMELHO, "[ x ] Você já utilizou esta giftcard !");
       PlayerPlaySound(playerid,1054,0.0,0.0,0.0);
       return 1;
    } 
Nesse comandos quando um player utiliza a tag [TAG] do lado do nick do jogador, quando o player digita o /Presente ele pode pegar varios presente que é somente pode pegar uma vez, quando um player não possui uma tag ele só pega uma vez, quando ele tem a tag ele consegue pegar varias vezes o presente, alguem pode me ajudar?

	   
	

![[Imagem: bqXFE9c.gif]](https://i.imgur.com/bqXFE9c.gif)
![[Imagem: 5I0uca9.png]](https://i.imgur.com/5I0uca9.png)