[POMOC] GF

Započeo kovacic16, Januar 22, 2011, 20:34:39 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ljudi jel ko zna kako da si na GF edit modu dam admina ? Logujem se preko rcon , ali kad idem /makeadmin pise da nisam autoriziran da koristim tu komandu , a kad u scriptfilles promjenim admin level , restartam server , opet nista... MOLIM POMOC !

Jel  znamo kako?

Znamo. Hvala na pitanju...

XD

Salim se....

Dodaj
|| IsPlayerAdmin(playerid)

pored:

PlayerInfo[playerid][pAdmin] >= 1338

Ili daj cmd pa ti ja  ubacim  pa znas  za ubuduce....

//----------------------------------[MAKEADMIN]------------------------------------------------
   if(strcmp(cmd, "/makeadmin", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeadmin [playerid/PartOfName] [level(1-1338)]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strval(tmp);
         if(PlayerInfo[playerid][pAdmin] >= 1339
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][pAdmin] = level;
                  printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, level);
                  format(string, sizeof(string), "   You have been promoted to a level %d admin by %s", level, sendername);
                  SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                  format(string, sizeof(string), "   You have promoted %s to a level %d admin.", giveplayer,level);
                  SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                  format(string, sizeof(string), "Level admin %d by admin %s to %s", level, sendername, giveplayer);
                  SendAdminMessage(COLOR_LIGHTRED, string);
                  format(string, 256, "AdmWarning: Admin %s has set %s to a level %d admin.", sendername,giveplayer,level);
                  ABroadCast(COLOR_LIGHTRED,string,1);
               }
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
         }
      }
      return 1;
   }