pomoč oko komande

Započeo Lumpri77, April 19, 2010, 19:41:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

evo ako mi neko može samo nadodat na ovu komandu za traku ( komanda služi da čovjek nemože pričat kad je zavezan ) ugl sada mogu /traka s drugog kraja grada a meni trebada se može u krugu odprilie 7.0 ili samo kada je igrač u zavezan u autu e da i kad mi izbaci tekst kad kucak /traka
CitatGameTextForPlayer(giveplayerid, "~g~Otmicar vam je skinuo traku sa usta", 2500, 3);
da ga izbaci samo igraču na kojeg ide traka jer sad ide i meni i svima evo komande :



http://pastebin.org/159462



ili



Citat//-------------------------------------[Traka]-----------------------------------------

   if(strcmp(cmd, "/traka", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /traka [igracevid/DioImena]");
            return 1;
         }
         new playa;
         playa = ReturnUser(tmp);
         if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 8||PlayerInfo[playerid][pLeader] == 8||PlayerInfo[playerid][pMember] == 4||PlayerInfo[playerid][pLeader] == 4)
         {
             if(PlayerInfo[playerid][pRank] < 3)
             {
                 SendClientMessage(playerid, COLOR_GREY, "   Potrebam vam je rank 3 !");
                 return 1;
             }
            if(IsPlayerConnected(playa))
             {
                 if(playa != INVALID_PLAYER_ID)
                 {
                   GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  if(PlayerInfo[playa][pMuted] == 0)
                  {
                     PlayerInfo[playa][pMuted] = 1;
                     printf("AdmCmd: %s je stavio traku na usta igracu %s",sendername ,giveplayer);
                     format(string, sizeof(string), "Napomena: %s je stavio traku na usta igracu %s",sendername ,giveplayer);
                     ABroadCast(COLOR_LIGHTRED,string,1);
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                       format(string, sizeof(string), "* %s uzima traku i stavla je na usta taocu.", sendername);
                      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     GameTextForPlayer(giveplayerid, "~r~Otmicar vam je stavio traku na usta", 2500, 3);
                     TogglePlayerControllable(giveplayerid, 1);
                  }
                  else
                  {
                     PlayerInfo[playa][pMuted] = 0;
                     printf("Napomena: %s je skinuo traku sa usta igracu %s",sendername ,giveplayer);
                     format(string, sizeof(string), "Napomena: %s je skinuo traku sa usta igracu %s",sendername ,giveplayer);
                     ABroadCast(COLOR_LIGHTRED,string,1);
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                       format(string, sizeof(string), "* %s skida traku s usta taoca.", sendername);
                      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                     GameTextForPlayer(giveplayerid, "~g~Otmicar vam je skinuo traku sa usta", 2500, 3);
                     TogglePlayerControllable(giveplayerid, 1);
                  }
               }
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   Niste u bandi!");
         }
      }
      return 1;
   }

Poslednja Izmena: April 19, 2010, 19:45:46 POSLE PODNE od lumpri

vidim,ovo je po principu /mute...
probaj nesto s ovim...
if (ProxDetectorS(7.0, playerid, giveplayerid))