Jump to content
  • 0

Nu salveaza scriptfile


BossDeBoss

Question

Buna am un server hostat si deabea l-am dechis.Am facut cont pe server,am intrat in GameCP si am editat fisierul cu numele meu cu admin 1339!Am dat save,acctualizeaza si am intrat pe server.Ma pus sa fac iar cont si nu aveam admin 1339.Am intrat in GameCP,click pe fisierul cu numele meu si am vazut ca scria admin 0.Am repetat si repetata si la fel... .

Ce sa fac sa nu se mai intample.... ??

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

De cand o aparut 0.3e nu se mai pot edita fisierele .ini deoarece daca il editezi ma refer bani,level nu o sa ii mai mearga sa se logheze sau in cel mai rau caz il pune sa se inreg denou si dupa ce il spawneaza il duce la ferma de la coordonatele X:0 Y:0 Z:0 !

Eu am problema asta si alti owneri in jur de peste 6 care ii cunosc si nu a reusit nimeni sa o rezolve. Dati admin cu ajutorul comenzi /makeadmin (seteaza pe RCON LOGIN)

Link to comment
Share on other sites

pff !!Am dat CTRL+F si am scris makeadmin si mi-a dat

//----------------------------------[MAKEADMIN]------------------------------------------------

if(strcmp(cmd, "/mwlols", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "MESAJ: /makeadmin [ Nume / Id ] [level(1-1339)]");

return 1;

}

new para1;

new level;

para1 = ReturnUser(tmp);

tmp = strtok(cmdtext, idx);

level = strval(tmp);

if (PlayerInfo[playerid][pAdmin] >= 0)

{

    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 A fost promovat la level %s admin de %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);

}

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Tu nu ai acces la aceasta comanda");

}

}

return 1;

}

//======================================================================================================================

// Comanda: /makeadmin

//======================================================================================================================

//----------------------------------[MAKEADMIN]------------------------------------------------

    if(strcmp(cmd, "/makeadmin", true) == 0)

  {

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, " : /makeadmin [playerid/PartOfName] [level(1-4)]");

return 1;

}

new para1;

new level;

para1 = ReturnUser(tmp);

tmp = strtok(cmdtext, idx);

level = strval(tmp);

if (PlayerInfo[playerid][pAdmin] >= 1338)

{

    if(IsPlayerConnected(para1))

    {

        if(para1 != INVALID_PLAYER_ID)

        {

if(level < 0 || level > 4) return SendClientMessage(playerid, COLOR_GREY,"* Imi pare rau dar accesul tau la admine este 1-4!!");

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, 256, "AdmWarning: %s has set %s to a level %d admin.", sendername,giveplayer,level);

ABroadCast(COLOR_YELLOW,string,1);

}

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, ": Ne pare rau, dar nu ai acces la aceasta comanda.");

}

}

return 1;

}

Sper sa te ajute!!Daca merge ai +1 de la mine in fiecare ora =))

Link to comment
Share on other sites

Gata, poftim comanda care sa o inlocuiesti cu cea care o ai deja

//----------------------------------[MAKEADMIN]------------------------------------------------
     if(strcmp(cmd, "/makeadmin", true) == 0)
     {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, " : /makeadmin [playerid/PartOfName] [level(1-4)]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strval(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1338 || IsPlayerAdmin(playerid))
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                  if(level < 0 || level > 4) return SendClientMessage(playerid, COLOR_GREY,"* Imi pare rau dar accesul tau la admine este 1-4!!");
                  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, 256, "AdmWarning: %s has set %s to a level %d admin.", sendername,giveplayer,level);
                  ABroadCast(COLOR_YELLOW,string,1);
               }
            }
         }
         else
         {
         SendClientMessage(playerid, COLOR_GRAD1, ": Ne pare rau, dar nu ai acces la aceasta comanda.");
         }
   }
   return 1;
   }

Link to comment
Share on other sites

Gata, poftim comanda care sa o inlocuiesti cu cea care o ai deja

//----------------------------------[MAKEADMIN]------------------------------------------------
     if(strcmp(cmd, "/makeadmin", true) == 0)
     {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, " : /makeadmin [playerid/PartOfName] [level(1-4)]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strval(tmp);
         if (PlayerInfo[playerid][pAdmin] >= 1338 || IsPlayerAdmin(playerid))
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                  if(level < 0 || level > 4) return SendClientMessage(playerid, COLOR_GREY,"* Imi pare rau dar accesul tau la admine este 1-4!!");
                  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, 256, "AdmWarning: %s has set %s to a level %d admin.", sendername,giveplayer,level);
                  ABroadCast(COLOR_YELLOW,string,1);
               }
            }
         }
         else
         {
         SendClientMessage(playerid, COLOR_GRAD1, ": Ne pare rau, dar nu ai acces la aceasta comanda.");
         }
   }
   return 1;
   }

Mersi sefu!!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.