Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: caupton poslato Januar 24, 2011, 21:14:39 POSLE PODNE

Naslov: [Pomoc]Admin
Poruka od: caupton poslato Januar 24, 2011, 21:14:39 POSLE PODNE
Pomoc kako da stavim da nijedan admina ,gm,i admin 1337,1338 DA NEMOZE DA SE PORT DO HEAD ADMINA DA MU PISE DA NEMOZE DA SE PORT DO HEAD ADMINA
A DA MOZE DO STALIH SAMO DA NEMOZE DO HEAD ADMINA
Naslov: Odg: [Pomoc]Admin
Poruka od: black_dota poslato Januar 24, 2011, 23:58:50 POSLE PODNE
postaj komandu pa cu ti pokazati
Naslov: Odg: [Pomoc]Admin
Poruka od: BalcanNation poslato Januar 25, 2011, 00:12:22 PRE PODNE
daj nam komandu za port da mozemo uskladiti i postati ti je natrag...

ali mislim da ti je to glupo, ako imas dobre admine i kazes im da se ne portaju onda ti netreba ta komanda jer nikada neznas kada ce ti zatrebati...

admini su po meni netko ko pravi red na serveru, ukoliko igrac nije sposoban biti admin buce gamemaster, ako ni to bice obican igrac...

nekada ti na sevreru nisu najbitniji igraci, bitno je imati dobre adminei gm, ako su oni u kurcu pozdravi se sa serverom stoga mislim da ti je ova komanda koju si sada pitao bezveze, al ukoliko zelis salji je u PM pa cu ti je ja napraviti :)

takoder i za sve ostalo sto budes trebao :D
Naslov: Odg: [Pomoc]Admin
Poruka od: caupton poslato Januar 25, 2011, 11:47:04 PRE PODNE
Ma nevredi ima nekih debila

Ako mozete vi da mi naprvite da nijedan admin gm nemoze da se port do 1340
Naslov: Odg: [Pomoc]Admin
Poruka od: black_dota poslato Januar 25, 2011, 11:55:03 PRE PODNE
DA SI STAIVO KOMANDU POMOGLI BI TI
Naslov: Odg: [Pomoc]Admin
Poruka od: BloodMaster poslato Januar 25, 2011, 12:01:24 POSLE PODNE
stavi komandu "/goto"

Citat: [IG]black_dota poslato Januar 25, 2011, 11:55:03 PRE PODNE
DA SI STAIVO KOMANDU POMOGLI BI TI

Nema potrebe za CAPS-om :-*
Naslov: Odg: [Pomoc]Admin
Poruka od: caupton poslato Januar 25, 2011, 12:12:37 POSLE PODNE
daj nemojte me jebati to mi je hitno, L!
Naslov: Odg: [Pomoc]Admin
Poruka od: BloodMaster poslato Januar 25, 2011, 12:14:53 POSLE PODNE
Citat: [Bp]D.N poslato Januar 25, 2011, 12:12:37 POSLE PODNE
daj nemojte me jebati to mi je hitno, L!

Citat: [Saw]BloodMaster poslato Januar 25, 2011, 12:01:24 POSLE PODNE
stavi komandu "/goto"

Postavi nam ju ovdje, kopiraj iz moda....
Naslov: Odg: [Pomoc]Admin
Poruka od: caupton poslato Januar 25, 2011, 12:19:17 POSLE PODNE
ewo 



//goto lista
       if(strcmp(cmd, "/gotolist", true) == 0)
       {
               if (PlayerInfo[playerid][pAdmin] >= 2)
       {
                       SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotols, gotosf, gotolv, gotobolnica, gotoburg");
                       SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotoswat, gotospawn, gotostunt");
                       SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotocross, gotocross1, gotohell, gotohell1");
                       SendClientMessage(playerid, COLOR_GRAD2, "Lokacije: gotorace, gotomonster, gotosurvivor");
               }
       else
       {
                       SendClientMessage(playerid, COLOR_WHITE, "   Niste ovlasteni da koristite tu komandu !");
       }
       }
       //spawn vozila za trke
       if(strcmp(cmd, "/vozila", true) == 0)
       {
               if (PlayerInfo[playerid][pAdmin] >= 2)
       {
               ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Vozila za Trke", "Cross Motori\nAero Race Motori\nAero Race Auta\nBeach Buggy\nMonster Truck\nDestruction Derby\nStunt Cross\nSurvivor Motori\nNovi Race", "Stvori", "Odustani");
               return 1;
       }
       else
       {
                       SendClientMessage(playerid, COLOR_WHITE, "   Niste ovlasteni da koristite tu komandu !");
Naslov: Odg: [Pomoc]Admin
Poruka od: BloodMaster poslato Januar 25, 2011, 12:23:10 POSLE PODNE
daj nam komandu /goto, ne /gotolist

upisi u CTRL + F ovo:

"/goto"

Sa navodnicima...
Naslov: Odg: [Pomoc]Admin
Poruka od: caupton poslato Januar 25, 2011, 12:24:39 POSLE PODNE
 if(strcmp(cmd, "/goto", true) == 0)
      {
          if(IsPlayerConnected(playerid))
          {
                      tmp = strtok(cmdtext, idx);
                      if(!strlen(tmp))
                      {
                              SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /goto [ID Igraca/Dio Imena]");
                              return 1;
                      }
                      new Float:plocx,Float:plocy,Float:plocz;
                      new plo;
                      plo = ReturnUser(tmp);
                      if (IsPlayerConnected(plo))
                      {
                          if(plo != INVALID_PLAYER_ID)
                          {
                                     
                                      if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
                                      {
                                              if(Spectate[playerid] != 255)
                                              {
                                                      Spectate[playerid] = 256;
                                              }
                                              GetPlayerPos(plo, plocx, plocy, plocz);
                                              if(PlayerInfo[plo][pInt] > 0)
                                              {
                                                      SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                                                      PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                                                      PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                                              }
                                              if(PlayerInfo[playerid][pInt] == 0)
                                              {
                                                      SetPlayerInterior(playerid,0);
                                              }
                                              if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
                                              {
                                                      SetPlayerInterior(playerid,1);
                                                      PlayerInfo[playerid][pInt] = 1;
                                              }
                                              if (GetPlayerState(playerid) == 2)
                                              {
                                                      new tmpcar = GetPlayerVehicleID(playerid);
                                                      SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                                                      TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                              }
                                              else
                                              {
                                                      SetPlayerPos(playerid,plocx,plocy+2, plocz);
                                              }
                                              SendClientMessage(playerid, COLOR_GRAD1, "   Teleportovani ste");
                                      }
                                      else
                                      {
                                              SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
                                      }
                              }
                      }
                      else
                      {
                              format(string, sizeof(string), "   %d nije aktivan igrac.", plo);
                              SendClientMessage(playerid, COLOR_GRAD1, string);
                      }
              }
              return 1;
Naslov: Odg: [Pomoc]Admin
Poruka od: BloodMaster poslato Januar 25, 2011, 12:28:44 POSLE PODNE
eto:

if(strcmp(cmd, "/goto", true) == 0)
      {
          if(IsPlayerConnected(playerid))
          {
                      tmp = strtok(cmdtext, idx);
                      if(!strlen(tmp))
                      {
                              SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /goto [ID Igraca/Dio Imena]");
                              return 1;
                      }
                      new Float:plocx,Float:plocy,Float:plocz;
                      new plo;
                      plo = ReturnUser(tmp);
                      if (IsPlayerConnected(plo))
                      {
                          if(plo != INVALID_PLAYER_ID)
                          {
                                      if (PlayerInfo[plo][pAdmin] == 1337 || PlayerInfo[plo][pAdmin] == 1338) return SendClientMessage(playerid,COLOR_RED,"Nemozes se portati do head admina!");
                                      if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGm] >= 1)
                                      {
                                              if(Spectate[playerid] != 255)
                                              {
                                                      Spectate[playerid] = 256;
                                              }
                                              GetPlayerPos(plo, plocx, plocy, plocz);
                                              if(PlayerInfo[plo][pInt] > 0)
                                              {
                                                      SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
                                                      PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
                                                      PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
                                              }
                                              if(PlayerInfo[playerid][pInt] == 0)
                                              {
                                                      SetPlayerInterior(playerid,0);
                                              }
                                              if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
                                              {
                                                      SetPlayerInterior(playerid,1);
                                                      PlayerInfo[playerid][pInt] = 1;
                                              }
                                              if (GetPlayerState(playerid) == 2)
                                              {
                                                      new tmpcar = GetPlayerVehicleID(playerid);
                                                      SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
                                                      TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
                                              }
                                              else
                                              {
                                                      SetPlayerPos(playerid,plocx,plocy+2, plocz);
                                              }
                                              SendClientMessage(playerid, COLOR_GRAD1, "   Teleportovani ste");
                                      }
                                      else
                                      {
                                              SendClientMessage(playerid, COLOR_GRAD1, "   Niste ovlasteni da koristite tu komandu!");
                                      }
                              }
                      }
                      else
                      {
                              format(string, sizeof(string), "   %d nije aktivan igrac.", plo);
                              SendClientMessage(playerid, COLOR_GRAD1, string);
                      }
              }
              return 1;
}
Naslov: Odg: [Pomoc]Admin
Poruka od: TheMonk poslato Januar 25, 2011, 12:48:56 POSLE PODNE
Jesi dodao sam ovo:
if (PlayerInfo[plo][pAdmin] == 1337 || PlayerInfo[plo][pAdmin] == 1338) return SendClientMessage(playerid,COLOR_RED,"Nemozes se portati do head admina!");
Naslov: Odg: [Pomoc]Admin
Poruka od: BloodMaster poslato Januar 25, 2011, 12:51:13 POSLE PODNE
Citat: [BF]Monk poslato Januar 25, 2011, 12:48:56 POSLE PODNE
Jesi dodao sam ovo:
if (PlayerInfo[plo][pAdmin] == 1337 || PlayerInfo[plo][pAdmin] == 1338) return SendClientMessage(playerid,COLOR_RED,"Nemozes se portati do head admina!");

Da, dodo sam samo to... To je on trazio...
Naslov: Odg: [Pomoc]Admin
Poruka od: TheMonk poslato Januar 25, 2011, 12:52:42 POSLE PODNE
Ok hvala i meni si pomogo,to mogu da stavim i na jos nekim komandama kao sto su /ban,/kick,/prison da ne mogu to da rade adminima...