їComo seteo un valor para todos?
#4

Quote:
Originally Posted by _X_
lo hice con dcmd
http://pastebin.com/EruhDdxe
espero que te funcione.
y para que el dcmd si ni usaste parametros que es por lo cual se suele usar dcmd?


no termine de enternder x completo, pero hice esto, espero que te sirva:
pawn Код:
if(dialogid==4 && response){
    switch(listitem){
        case 0:{
      for(new i=0; i<MAX_PLAYERS; i++){
        if(IsPlayerConnected(i)){
          if(InIraq[i] == 0 || InHome[i] == 1 || InCityHall[i] == 1 || InOffCasino[i] == 1 || InLinden[i] == 1){
            if(InCti] == 1 && InTerror[i] == 0){
              new rand = random(sizeof(CtSpawnsIraq));
              SetPlayerPos(i, CtSpawnsIraq[rand][0], CtSpawnsIraq[rand][1], CtSpawnsIraq[rand][2]);
              SetPlayerInterior(i, 5);
            }
            if(InCt[i] == 0 && InTerror[i] == 1){
              new rand = random(sizeof(TerrorSpawnsIraq));
              SetPlayerPos(i, TerrorSpawnsIraq[rand][0], TerrorSpawnsIraq[rand][1], TerrorSpawnsIraq[rand][2]);
              SetPlayerInterior(i, 5);
            }
            if(English[playerid] == 1) return SendClientMessage(playerid,0xccccccff, "The map is successfully change to Madd Dogg's Mansion.");
            SendClientMessage(playerid,0x00ffccff, "El mapa ha sido cambiado exitosamente a Mansiуn de Madd Dogg");
            format(TText,128,"SERVIDOR: %s(%d) ha cambiado su mapa a: Mansiуn de Madd Dogg.",GetName(playerid),playerid);
            SendClientMessageToAll(0xC4FDB0FF,TText);
            InIraq[i] = 1;
            InHome[i] = 0;
            InCityHall[i] = 0;
            InOffCasino[i] = 0;
            InLinden[i] = 0;
          }
        }
      }
    }
  }
}
Reply


Messages In This Thread
їComo seteo un valor para todos? - by Vladeksh - 21.06.2010, 00:49
Re: їComo seteo un valor para todos? - by jurgen - 21.06.2010, 01:28
Re: їComo seteo un valor para todos? - by jurgen - 21.06.2010, 01:30
Re: їComo seteo un valor para todos? - by TheChaoz - 21.06.2010, 02:44
Re: їComo seteo un valor para todos? - by Vladeksh - 21.06.2010, 20:23
Re: їComo seteo un valor para todos? - by jurgen - 21.06.2010, 23:01
Re: їComo seteo un valor para todos? - by TheChaoz - 21.06.2010, 23:16
Re: їComo seteo un valor para todos? - by jurgen - 21.06.2010, 23:40
Re: їComo seteo un valor para todos? - by TheChaoz - 22.06.2010, 00:37
Re: їComo seteo un valor para todos? - by jurgen - 22.06.2010, 01:23

Forum Jump:


Users browsing this thread: 1 Guest(s)