[Pedido] Comando
#2

pawn Код:
if(!strcmp(cmdtext, "/retiraravisos", true))
{
     if(PlayerInfo[playerid][VariavelADM] > Nнvel)
     {
           tmp = strtok(cmdtext, idx);
           giveplayerid = strval(tmp);
           if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED, "Uso Correto : /retiraravisos [Player ID]");
           GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
           if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED, "[ERRO]: Jogador Nгo Conectado!");
           format(string, sizeof(string), "[Admin]: %s Retirou Todos os Avisos do Jogador %s!", sendername, giveplayer);
           SendClientMessageToAll(-1, string);
           VariavelAvisos[giveplayerid] = 0;
      }
      else
      {
      SendClientMessage(playerid, COLOR_RED, "Vocк Nгo tem Nнvel de Administrador Suficiente");
          return 1;
       }
  }
  else
  {
      SendClientMessage(playerid, COLOR_RED, "Vocк tem Que estar Logado para Utilizar o Comando!");
      return 1;
  }
  return 1;
}
Elaborei um aqui parecido com o que eu tinha , sу adaptar ^^
Reply


Messages In This Thread
[Pedido] Comando - by Micael.Nees - 12.05.2012, 17:06
Re: [Pedido] Comando - by .FuneraL. - 12.05.2012, 17:11
Re: [Pedido] Comando - by Micael.Nees - 12.05.2012, 17:17
Re: [Pedido] Comando - by .FuneraL. - 12.05.2012, 17:20
Re: [Pedido] Comando - by WagnerPM - 12.05.2012, 17:27
Re: [Pedido] Comando - by Micael.Nees - 12.05.2012, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)