Jump to content

rpg

Membru
  • Posts

    42
  • Joined

  • Last visited

Posts posted by rpg

  1. Problema intalnita (descriere): Am incercat sa adaug un nou sistem de bus-uri in server-ul meu,dar botii(creat de npc-uri cred) nu se spawneaza,adica stau mereu la mijlocul hartii,desii intr-un gm normal(cum ar fii grand lacerny,unde l-am testat prima oara) merge perfect.
    Ero(area / rile) / warning-(ul / urile):FS-ul nu are niciun fel de warning,e "impecabil"
    Liniile de cod / sursa / script-ul(obligatoriu): http://pastebin.com/EwNsvz0C
    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Da... .Am incercat sa modific aceste line-uri in gm-ul principal :

        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
            Kick(playerid);
            return 1;

    La:

    if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))

     

    Multumesc,

  2. 38 minutes ago, rpg said:

    Salut!Ma numesc Rapha si am o problema legata de un sistem de autobuze.Am pus FS-urile specifice in folder-ul "filterscripts" si la fel si NPC-urile in folder-ul " npcmodes ".Apoi am modificat la server.cfg linia "filterscripts" si "maxnpc 2" si da urmatoarea eroare...:

    [13:06:45] [connection] incoming connection: 127.0.0.1:53922 id: 0
    [13:06:45] [connection] incoming connection: 127.0.0.1:53923 id: 1
    [13:06:45] [npc:join] BlackBusDriver has joined the server (0:127.0.0.1)
    [13:06:45] [npc:join] BlueBusDriver has joined the server (1:127.0.0.1)
    [13:06:50] [npc:part] BlueBusDriver has left the server (1:2)
    [13:06:50] [npc:part] BlackBusDriver has left the server (0:2)

    Am cautat pe net si am vazut ca versiunile de NPC ar diferii de la o versiune la alta de samp,script-ul fiind facut prin 2011 mi se pare.Ce pot face?

    Multumesc,

    Mda,m-am mai uitat putin pe net si am modificat in GM principal urmatoarele lucruri:

    De la:

    if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_LIGHTRED, "** This server requires a Login BEFORE spawn (Kicked) **");
            Kick(playerid);
            return 1;
         }
    

    la:

    if(gPlayerLogged[playerid] == 0 && !IsPlayerNPC(playerid))

     

    Acum problema e ca nu-si urmeaza traseul si stau mereu la mijlocul hartii autobuzele...(desi am testat sistemul intr-un Grand Lacerny si mergea bine...)

    Ce as putea face in continuare?Ce ar trebuii sa modific in GM ca sa se spawneze normal?

  3. Salut!Ma numesc Rapha si am o problema legata de un sistem de autobuze.Am pus FS-urile specifice in folder-ul "filterscripts" si la fel si NPC-urile in folder-ul " npcmodes ".Apoi am modificat la server.cfg linia "filterscripts" si "maxnpc 2" si da urmatoarea eroare...:

    [13:06:45] [connection] incoming connection: 127.0.0.1:53922 id: 0
    [13:06:45] [connection] incoming connection: 127.0.0.1:53923 id: 1
    [13:06:45] [npc:join] BlackBusDriver has joined the server (0:127.0.0.1)
    [13:06:45] [npc:join] BlueBusDriver has joined the server (1:127.0.0.1)
    [13:06:50] [npc:part] BlueBusDriver has left the server (1:2)
    [13:06:50] [npc:part] BlackBusDriver has left the server (0:2)

    Am cautat pe net si am vazut ca versiunile de NPC ar diferii de la o versiune la alta de samp,script-ul fiind facut prin 2011 mi se pare.Ce pot face?

    Multumesc,

  4. 3 minutes ago, KnowN said:

    Cel mai probabil ai uitat o acolada sau ai atatea erori incat nu le poate suporta.

    Dupa ce am sters ultima acolada de la  public OnPlayerUpdate(playerid)  mi-a dat urmatoarele erori pe care nu le aveam inainte sa implementez aceasta comanda...: http://pastebin.com/wb0ZpLAe

    PS: Intr-un FS merge perfect si da doar 2 warning-uri,dar eu vreau sa-l adaug in GM pentru ca nu vreau sa-l foloseasca toata lumea sau doar RCON-ul...

    Any another help?

    :D

    EDIT:Am reincercat sa adaug comanda,si de data aceasta a mers.Multumesc oricum :D

     

    T/C

  5. Salut!Am o problema la gamemode-ul meu,de fiecare data cand incerc sa-l compliez mi se opreste pawn si da eroarea: pawn compiler library has stopped working.Totul a inceput cand am incercat sa adaug o noua comanda( /god ).Scriptul il aveti mai jos:

    Problema intalnita (descriere):(mai sus)
    Ero(area / rile) / warning-(ul / urile): pawn compiler library has stopped working 
    Liniile de cod / sursa / script-ul(obligatoriu):  http://pastebin.com/tzV66VkF
    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: Am cautat pe net,dar n-am gasit cum sa rezolv...(eu zic ca n-are erori de linii)

    Multumesc mult!

  6. 18 hours ago, DaEdRiC-FoX said:

    Vezi ca la payday să ai:

    PlayerData[pRobPoints] += 1; //sau cum ai tu variabilele.

    si pui

    mysql_format(handle, query, sizeof(query),"UPDATE `users` SET `RobPoints`='%d' WHERE `Name`='%e' ", PlayerData[pRobPoints], GetName(i));

    mysql_pquery(handle, query, "", "");

    //Acesta este un exemplu îl adaptezi la scriptul tău.

    GetName este un stock care se folosește de GetPlayerName si returnează numele playerului în funcție de id ul acestuia..

    Nu am putut gasii ce ai scris tu(chiad daca am modificat variablila cu pRob ,asa cum este pe gm-ul meu).M-ai putea ajuta prin skype cumva?Ti-as da si gm-ul(.pwn) sa te uiti la el ce are...

  7. Salut!Ma numesc Raphael si am o problema  legata de un gamemode pe mySQL,asem bugged.Problema este descisa mai jos:

    Problema intalnita (descriere):La fiecare PAYDAY trebuia sa se adune cate un punct de ROB.Eh..uite ca nu se aduna... .
    Ero(area / rile) / warning-(ul / urile): Nu am.
    Liniile de cod / sursa / script-ul(obligatoriu):E de unde cred eu ca incepe... http://pastebin.com/QFhnG0MF
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Nu.Doar m-am uitat prin baza de date -> users si am vazuc ca coloana "Rob" exista si cand mi-am setat manual punctele a mers sistemul(altfel aveam vreo 9 ore jucate si 0 puncte ROB... )

    Ma puteti ajuta?App,daca script-ul prezentat mai sus nu-i corect..imi puteti zice ce sa caut ca sa gasesc sistemul de payday?

    Multumesc anticipat,

    rpg

  8. //----------------------------------[SETADMIN]------------------------------------------------
        if(strcmp(cmd, "/setadmin", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendUsage(playerid,"/setadmin [playerid/PartOfName] [Level(1-6)]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
                new PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                if (PlayerData[playerid][pAdmin] >= 6)
                {
                    if(IsPlayerConnected(para1))
                    {
                        if(para1 != INVALID_PLAYER_ID)
                        {
                            new day,month,year;
                            getdate(day,month,year);
                            new hour,minute,second;
                            gettime(hour,minute,second);
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "Ai fost promovat Admin level %d de catre %s.", level, sendername);
                            SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), " L-ai promovat pe %s la ADMIN Level %d.", giveplayer,level);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d.", sendername, giveplayer,level);
                            ABroadCast(COLOR_LIGHTBLUE, string, 1);
                            format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second);
                            admincmdslog(string);
                            new query[256];
                            PlayerData[para1][pAdmin] = level;
                            format(query, sizeof(query), "UPDATE players SET AdminLevel='%d' WHERE id=%d", PlayerData[para1][pAdmin], PlayerData[para1][pSQLID]);
                            mysql_query(query);
                        }
                    }
                }
                else
                {
                    SendError(playerid,cmd);
                }
            }
            return 1;
        }
    
     
    
    /sethelper
    
        if(strcmp(cmd, "/sethelper", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendUsage(playerid,"/sethelper [playerid/PartOfName] [level(0/1)]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
                new PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                if(level > 1 || level < 0) return SendClientMessage(playerid,COLOR_WHITE,"Level-ul poate fi doar 0 sau 1!");
                if (PlayerData[playerid][pAdmin] >= 6)
                {
                    if(IsPlayerConnected(para1))
                    {
                        if(para1 != INVALID_PLAYER_ID)
                        {
                            new day,month,year;
                            getdate(day,month,year);
                            new hour,minute,second;
                            gettime(hour,minute,second);
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(level == 1)
                            {
                                format(string, sizeof(string), "Ai fost promovat la Helper de catre adminul %s.", sendername);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "L-ai promovat pe %s la Helper.", giveplayer);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "%s l-a promovat pe %s la Helper", sendername, giveplayer);
                                ABroadCast(COLOR_LIGHTBLUE, string, 1);
                                format(string, sizeof(string), "%s l-a promovat pe %s la Helper level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second);
                                admincmdslog(string);
                            }
                            else if(level == 0)
                            {
                                format(string, sizeof(string), "Ai fost scos din functia de Helper de adminul %s.", sendername);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "L-ai scos din functia de Helper pe %s.", giveplayer);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "%s i-a scos Helper-ul lui %s.", sendername, giveplayer);
                                ABroadCast(COLOR_LIGHTBLUE, string, 1);
                                format(string, sizeof(string), "%s i-a scos Helper-ul lui %s(%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,day,month,year,hour,minute,second);
                                admincmdslog(string);
                            }
                            new query[256];
                            PlayerData[para1][pAgent] = level;
                            format(query, sizeof(query), "UPDATE players SET Agent='%d' WHERE id=%d", PlayerData[para1][pAgent], PlayerData[para1][pSQLID]);
                            mysql_query(query);
                        }
                    }
                }
                else
                {
                    SendError(playerid,cmd);
                }
            }
            return 1;
        }

    Incearca asa.

    ​Multumesc mult tie,si celor care au vrut sa ma ajute!

    PROBLEMA REZOLVATA :)

  9. Problema intalnita (descriere):Nu pot sa dau admin nimanui,deoarece imi scrie ca nu-s autorizat sa folosesc /setadmin si nici /sethelper.
    Ero(area / rile) / warning-(ul / urile):Nu am.

    Ati incercat sa rezolvati singur?:Da.Am incercat sa pun if (PlayerData[playerid][pAdmin] >= 6),dar nush unde so pun.
    Liniile de cod / sursa / script-ul(obligatoriu):Mai jos

    /setadmin

     

    //----------------------------------[SETADMIN]------------------------------------------------
        if(strcmp(cmd, "/setadmin", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendUsage(playerid,"/setadmin [playerid/PartOfName] [Level(1-6)]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
                new PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                if(EsteManager(playerid))
                {
                    if(IsPlayerConnected(para1))
                    {
                        if(para1 != INVALID_PLAYER_ID)
                        {
                            new day,month,year;
                            getdate(day,month,year);
                            new hour,minute,second;
                            gettime(hour,minute,second);
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            format(string, sizeof(string), "Ai fost promovat Admin level %d de catre %s.", level, sendername);
                            SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), " L-ai promovat pe %s la ADMIN Level %d.", giveplayer,level);
                            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                            format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d.", sendername, giveplayer,level);
                            ABroadCast(COLOR_LIGHTBLUE, string, 1);
                            format(string, sizeof(string), "%s l-a promovat pe %s la ADMIN Level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second);
                            admincmdslog(string);
                            new query[256];
                            PlayerData[para1][pAdmin] = level;
                            format(query, sizeof(query), "UPDATE players SET AdminLevel='%d' WHERE id=%d", PlayerData[para1][pAdmin], PlayerData[para1][pSQLID]);
                            mysql_query(query);
                        }
                    }
                }
                else
                {
                    SendError(playerid,cmd);
                }
            }
            return 1;
        }

     

    /sethelper

        if(strcmp(cmd, "/sethelper", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, " Nu esti logat inca!");
                    return 1;
                }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendUsage(playerid,"/sethelper [playerid/PartOfName] [level(0/1)]");
                    return 1;
                }
                new para1;
                new level;
                para1 = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                level = strval(tmp);
                new PlayerName[MAX_PLAYER_NAME];
                GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
                if(level > 1 || level < 0) return SendClientMessage(playerid,COLOR_WHITE,"Level-ul poate fi doar 0 sau 1!");
                if(EsteManager(playerid))
                {
                    if(IsPlayerConnected(para1))
                    {
                        if(para1 != INVALID_PLAYER_ID)
                        {
                            new day,month,year;
                            getdate(day,month,year);
                            new hour,minute,second;
                            gettime(hour,minute,second);
                            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                            GetPlayerName(playerid, sendername, sizeof(sendername));
                            if(level == 1)
                            {
                                format(string, sizeof(string), "Ai fost promovat la Helper de catre adminul %s.", sendername);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "L-ai promovat pe %s la Helper.", giveplayer);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "%s l-a promovat pe %s la Helper", sendername, giveplayer);
                                ABroadCast(COLOR_LIGHTBLUE, string, 1);
                                format(string, sizeof(string), "%s l-a promovat pe %s la Helper level %d (%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,level,day,month,year,hour,minute,second);
                                admincmdslog(string);
                            }
                            else if(level == 0)
                            {
                                format(string, sizeof(string), "Ai fost scos din functia de Helper de adminul %s.", sendername);
                                SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "L-ai scos din functia de Helper pe %s.", giveplayer);
                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                format(string, sizeof(string), "%s i-a scos Helper-ul lui %s.", sendername, giveplayer);
                                ABroadCast(COLOR_LIGHTBLUE, string, 1);
                                format(string, sizeof(string), "%s i-a scos Helper-ul lui %s(%d-%d-%d), (%d:%d:%d)", sendername, giveplayer,day,month,year,hour,minute,second);
                                admincmdslog(string);
                            }
                            new query[256];
                            PlayerData[para1][pAgent] = level;
                            format(query, sizeof(query), "UPDATE players SET Agent='%d' WHERE id=%d", PlayerData[para1][pAgent], PlayerData[para1][pSQLID]);
                            mysql_query(query);
                        }
                    }
                }
                else
                {
                    SendError(playerid,cmd);
                }
            }
            return 1;
        }

  10. Salut all!Am un gm bunicel,cumparat cu 7 E,si am o problema la comanda /goto.Nu stiu de ce mereu se teleporteaza la id 1,si nu la cine trebuie.Uitati codul:

     
     
    /*==============================================================================
    Comanda: /goto
    ==============================================================================*/
    CMD:goto(playerid,params[])
    {
        if(IsPlayerConnected(playerid))
        {
       if(gPlayerLogged[playerid] != 0)
       {
           new Float:PosX, Float:PosY, Float:PosZ, Float:PosIDX, Float:PosIDY, Float:PosIDZ, string[256], sendername[MAX_PLAYER_NAME], giveplayername[MAX_PLAYER_NAME], ID;
           if(sscanf(params, "u", ID)) return SendClientMessage(playerid, -1, ""PORTOCALIU"Scrie: "ALBASTRU2"/goto [Player ID]");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerName(ID, giveplayername, sizeof(giveplayername));
    if(IsPlayerConnected(ID))
    {
       if(ID != INVALID_PLAYER_ID)
       {
    if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
    {
    GetPlayerPos(ID, PosIDX, PosIDY, PosIDZ);
    if (GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3)
    {
    new tmpcar = GetPlayerVehicleID(playerid);
    SetVehiclePos(tmpcar, PosIDX, PosIDY + 4, PosIDZ);
    TelePos[playerid][0] = 0.0; TelePos[playerid][1] = 0.0;
    LinkVehicleToInterior(tmpcar, GetPlayerInterior(ID));
    SetVehicleVirtualWorld(tmpcar, GetPlayerVirtualWorld(ID));
    SetPlayerInterior(playerid, GetPlayerInterior(ID));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(ID));
     
    }
    else
    {
    SetPlayerPos(playerid, PosIDX, PosIDY + 2, PosIDZ);
    SetPlayerInterior(playerid, GetPlayerInterior(ID));
    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(ID));
    }
    format(string, 256, ""GRI3"You have been teleported to: %s", giveplayername);
    SendClientMessage(playerid, -1, string);
    format(string, 256, ""PORTOCALIU"Admin Warning: "GALBEN"%s a folosit comanda "VERDE"/goto "GALBEN"si s-a teleportat la %s", sendername, giveplayername);
    AdminsMessage(-1, string);
    format(string, 256, ""PORTOCALIU"Helper Warning: "GALBEN"%s a folosit comanda "VERDE"/goto "GALBEN"si s-a teleportat la %s", sendername, giveplayername);
    HeadHelpersMessage(-1, string);
    GetPlayerPos(playerid, PosX, PosY, PosZ);
    GBPosX[playerid] = PosX;
    GBPosY[playerid] = PosY;
    GBPosZ[playerid] = PosZ;
    }
    else return SendClientMessage(playerid, -1, ""ALBASTRU2"Nu ai autorizatia sa folosesti aceasta comanda !");
    }
    }
    else return SendClientMessage(playerid, -1, ""GRI3"Acest player nu este conectat");
    }
    else return SendClientMessage(playerid, -1, ""ALBASTRU2"Nu esti conectat !");
    }
    return 1;
    }
    A,warning-uri nu am deloc in gm.
     
    Ce nu va pare in regula?Va rog sa ma ajutati cat mai repede!

     

×
×
  • 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.