[Pomoc] Poruke Sms

Započeo [Bp]jovan, Mart 19, 2011, 12:53:19 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:BU
Detaljan opis problema:Znaci..Kako da namestim..Kad neko posalje Poruku..Da Admini Vide Sta je on Poslao...
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD

Povise return 1; ili tamo gdje igrac prima poruku

dodaj

SendAdminMessage(BOJA, "%s", result);

Ili formatirani poruku:


format(string, sizeof(string), "%s",  result);
SendAdminMessage(BOJA,string);


Nadam se da sam pomogao xD

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VUTRASI


Dodajte me na msn ako budem banovan!

[email protected]

!!!!!!!!!!!!!!!!!!!!!!!!!!
Balkan Fanaticos - Click!!!

-----------------------------------------------------------------------------------------------------------------------------------------------------------------
   if(strcmp(cmd, "/txt", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
   {
       if(IsPlayerConnected(playerid))
      {
          new playercash;
          playercash = GetPlayerMoney(playerid);
          if (playercash < 2)
          {
               SendClientMessage(playerid, COLOR_GREY, "   Nemate dovoljno novca na racunu!");
               return 1;
          }
          if(gPlayerLogged[playerid] == 0)
           {
               SendClientMessage(playerid, COLOR_GREY, "   Niste se prijavili!");
               return 1;
           }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/t)ext [phonenumber] [text chat]");
            return 1;
         }
         if(PlayerInfo[playerid][pPnumber] == 0)
         {
            SendClientMessage(playerid, COLOR_GRAD2, "  Nemate telefon...");
            return 1;
         }
         GetPlayerName(playerid, sendername, sizeof(sendername));
         format(string, sizeof(string), "* %s je uzeo telefon iz dzepa.", sendername);
         ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
         new phonenumb = strval(tmp);
         new length = strlen(cmdtext);
         while ((idx < length) && (cmdtext[idx] <= ' '))
         {
            idx++;
         }
         new offset = idx;
         new result[64];
         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
         {
            result[idx - offset] = cmdtext[idx];
            idx++;
         }
         result[idx - offset] = EOS;
         if(!strlen(result))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/t)ext [phonenumber] [text chat]");
            return 1;
         }
         if(phonenumb == 555)
         {
            if ((strcmp("yes", result, true, strlen(result)) == 0) && (strlen(result) == strlen("yes")))
            {
               SendClientMessage(playerid, COLOR_WHITE, "SMS Poruka je poslata.");
               if (gTeam[playerid] == 2 || gTeam[playerid] == 1)
               {
                  SendClientMessage(playerid, COLOR_YELLOW, "SMS: Nemam pojma o cemu pricas, Salje: MOLE (555)");
                  RingTone[playerid] = 20;
                  return 1;
               }
               return 1;
            }
            else
            {
               SendClientMessage(playerid, COLOR_YELLOW, "SMS: Obicno Yes je dovoljno, Salje: MOLE (555)");
               RingTone[playerid] = 20;
               return 1;
            }
         }
         foreach (Player, i)
         {
               if(PlayerInfo[pPnumber] == phonenumb && phonenumb != 0)
               {
                  giveplayerid = i;
                  Mobile[playerid] = giveplayerid; //caller connecting
                  if(IsPlayerConnected(giveplayerid))
                  {
                      if(giveplayerid != INVALID_PLAYER_ID)
                      {
                          if(PhoneOnline[giveplayerid] > 0)
                          {
                              SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline!");
                              return 1;
                          }
                        format(string, sizeof(string), "SMS: %s, Salje: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
                        GetPlayerName(giveplayerid, sendername, sizeof(sendername));
                        //format(string, sizeof(string), "* %s's phone beeps.", sendername);
                        RingTone[giveplayerid] =20;
                        SendClientMessage(playerid, COLOR_WHITE, "Poruka je poslata");
                        SendClientMessage(giveplayerid, COLOR_YELLOW, string);
                        SendClientMessage(playerid,  COLOR_YELLOW, string);
                        format(string, sizeof(string), "~r~$-%d", txtcost);
                        GameTextForPlayer(playerid, string, 5000, 1);
                        SafeGivePlayerMoney(playerid,-txtcost);
                        SBizzInfo[2][sbTill] += txtcost;
                        ExtortionSBiz(2, txtcost);
                             PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                             Mobile[playerid] = 255;
                        return 1;
                  }
               }
            }
         }
         SendClientMessage(playerid, COLOR_GRAD2, "  Poruka nije poslata...");
      }
      return 1;
   }
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Eo /sms Komanda E de Da stavim ??

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD

Gdje ti pise ovo:

                        format(string, sizeof(string), "SMS: %s, Salje: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
                        GetPlayerName(giveplayerid, sendername, sizeof(sendername));


Ispod toga dodaj ono sto sam reko

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
VUTRASI


Dodajte me na msn ako budem banovan!

[email protected]

!!!!!!!!!!!!!!!!!!!!!!!!!!
Balkan Fanaticos - Click!!!

Hvala...


Ovde Moze Lock

------------------------------------------------------------------------------
Zahvaljujem Se Snich_Wolf-u Zato sto Mi je mnogo Pomogo oko Skriptanja...Snich Hvala brt <3 xD