Jump to content

PrtSc

Membru
  • Posts

    122
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by PrtSc

  1. 5 minutes ago, marius11 said:

    CMD:report(playerid, params[])
    {
        if(systemVariables[reportSystem] == 0)
        {
            if(isnull(params))
            {
                SCM(playerid, COLOR_GREY, SYNTAX_MESSAGE"/report [message]");
            }
            else
            {
                if(playerVariables[playerid][pReport] >= 1) {
                    SCM(playerid, COLOR_WHITE, "You already have an active report within our system, please wait for it to be answered.");
                }
                else
                {
                    if(rTime[playerid] == 0)
                    {
                        if(rMuted[playerid] == 0)
                        {
                            if(strlen(params) >= 100)
                            {
                                return SCM(playerid, COLOR_GREY, "Your report message was too long. Keep it under 100 characters.");
                            }
                            else
                            {
                                new str[256];
                                format(str, 256, "SELECT * FROM `reports`");
                                new Cache: res = mysql_query(handle, str);
                                new reports = cache_get_row_count();
                                cache_delete(res);
                                if(reports == 128)
                                {
                                    SendClientMessage(playerid, COLOR_LIGHTRED, "There are too many unread reports.");
                                }
                                else
                                {
                                    rTime[playerid] = 120;
                                    new y,m,d,h,mi,s;
                                    getdate(y,m,d);
                                    gettime(h,mi,s);
                                    new str2[512];
                                    format(str2,512,"INSERT INTO `reports` (`player`,`message`,`time`) VALUES ('%s','%s','%02d/%02d/%d %02d:%02d:%02d')",playerVariables[playerid][pNormalName],params,d,m,y,h,mi,s);
                                    mysql_tquery(handle, str2);
                                    SCM(playerid, -1, "{004AB8}Reportul tau a fost trimis {EF0000}staff-ului{004AB8}.");
                                    NumarReport ++;
                                    format(szMessage, sizeof(szMessage), "{FF0000}Player{FFFF00} %s [{FFFF00}id %d]{FF0000} Mesaj report:{FFFF00} %s.{FF0000}Foloseste /ar sau /reports .", playerVariables[playerid][pNormalName], playerid,params);
                                    submitToAdmins(szMessage, COLOR_REPORT);
                                    Reported[playerid] = 1;
                                    foreach(Player, i)
                                    {
                                        if(playerVariables[pHelper] >= 1)
                                        {
                                            SCM(i, COLOR_REPORT, szMessage);
                                        }
                                    }
                                }
                            }
                        }
                        else
                        {
                            format(szMessage, sizeof(szMessage), "Ai mute , poti folosi /report in %d secunde.", rMuted[playerid]);
                            SCM(playerid, -1, szMessage);
                        }
                    }
                    else
                    {
                        format(szMessage, sizeof(szMessage), "Poti trimite un nou report in %d secunde.", rTime[playerid]);
                        SCM(playerid, -1, szMessage);
                    }
                }
            }
        }
        else
        {
            SCM(playerid, COLOR_WHITE, "The report system is disabled right now. Please try again later.");
        }
        return 1;
    }

    si

    CMD:acceptreport(playerid, params[])
    {
        new target;
        if(sscanf(params, "u", target)) return SCM(playerid, -1, "Syntax: /acceptreport [playerid]");
        if(IsPlayerConnected(target))
        {
            if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
            {
                if(target != INVALID_PLAYER_ID)
                {
                    if(Reported[target] == 1)
                    {
                        format(szMessage, sizeof(szMessage), "%s accepted your report. Use /al [text] to chat with him.", playerVariables[playerid][pNormalName]);
                        SCM(target, COLOR_YELLOW, szMessage);

                        format(szMessage, sizeof(szMessage), "You accepted %s's report. Use /al [text] to chat with him.", playerVariables[target][pNormalName]);
                        SCM(playerid, COLOR_YELLOW, szMessage);

                        format(szMessage, sizeof(szMessage), "%s accepted %s's reports.", playerVariables[playerid][pNormalName],playerVariables[target][pNormalName]);
                        submitToAdmins(szMessage, COLOR_YELLOW);
                        NumarReport --;

                        new query[256];
                        mysql_format(handle, query, 256, "DELETE FROM `reports` WHERE `player` = '%s'", playerVariables[target][pNormalName]);
                        mysql_tquery(handle, query);
                        playerVariables[playerid][pHelpedPlayers]++;
                        playerVariables[playerid][pHelperTokens]++;

                        LiveChat[playerid] = target;
                        LiveChat[target] = playerid;
                        Reported[target] = 0;
                        NeededHelp[target] = 0;
                    }
                    else
                    {
                        SCM(playerid, COLOR_GREY, "This player didn't report anything.");
                    }
                }
                else
                {
                    SCM(playerid, COLOR_GREY, "This player is not connected.");
                }
            }
            else
            {
                SCM(playerid, COLOR_GREY, "You are not a helper/admin!");
            }
        }
        else
        {
            SCM(playerid, COLOR_GREY, "Player not connected!");
        }
        return 1;
    }

    la mine e opus-ul ma :D

  2. 2 minutes ago, DaEdRiC-FoX said:

    Știi..unele lucruri sunt de bază, iar dacă tu nu știi lucrurile de bază în acest limbaj, atunci DA,te poți lăsa.

    hai sa nu facem free-chat, daca vrea sa ma ajute cu TD ii bine daca nu ,nu. Nu vreau sa ma cert sau sa cobor cu mintea...

  3. 22 minutes ago, Kallen said:

    nu ar fi bine sa taci "scripter priceput" 1. Sunt Moldovan 2. Nu iti convine nu comenta ok?, Ce ai treaba tu cu mine ? Nici macar nustiu cum se creaza acel TD.

    daca nu stiu cum se face un TD ? Gata ar trebui sa ma las geniule ?

  4. 20 minutes ago, Mister said:

    Dac ti-l da vei spune ca iti da erori si ca nu e bun :)) deci ti l-ar da degeaba  eu zic sa il faci singur, nu ne mai intreba pe noi ca nimeni nu e dispus sa te "invete " pe ti e scripting, sunt destui "scripteri" in romania. Nu mai e loc de alti

    nu ar fi bine sa taci "scripter priceput" 1. Sunt Moldovan 2. Nu iti convine nu comenta ok?, Ce ai treaba tu cu mine ? Nici macar nustiu cum se creaza acel TD.

  5. 2 minutes ago, Mister said:

    Dar ce imi spui tu mie e ceva de genu ma ajuti si pe mine sa trimit un mesaj la playeri si anum

    SendClientMessageToAll (-1,"mesaj pentru toti ");

    Foloseste ipleomax

    deci el a folosit ipleomax, da ?

    orcum nu ma descurc cu ipleomax, astept raspunsul lui.

  6. 9 hours ago, Mister said:

    Da, cauti de saptamani dar se creaza prin 3 taste si un cursor cu ipleomax.

    Si nu inteleg de ce am avea o parere, este identic cu cel de pe bugg si are font 3 culoare si gata, ce ar trebui sa ne placa.

    Acum cativa ani as fi zis 8/10 pentru ca esti inceptor si l-ai facut tu, dar azi nu se mai poate zice,  la cate pluginuri fa si chestii de facut textdrawuri nu mai poti aprecia ceva.

    Inainte te chinuiai cam juma de ora pentru un td mai frumusel ca nu erau programe de editat asa peste tot, iar cum uni ca mine erau incepatori nu gaseau pe net ca nu erau multe

    ma ajuti si pe mn sa fac Reports si Cheaters ?

  7. Problema intalnita (descriere): Salut,  dati-mi va rog TD pentru Cheaters si Reports in sus sa se vada doar pentru Admini (cu rosu si alb) va multumesc...
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): -
    Imagini / Video (optional):  Minutul 0:09 ( REPORTS si CHEATERS )

     
    Ati incercat sa rezolvati singur?:   Nu...

  8. Problema intalnita (descriere): Cum as putea scoate Object-urile de pe mapa ex Brazi, copaci, stalpuri cu lumini ? Va rog help me
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): -
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?: Nu.

  9. Problema intalnita (descriere): Pot da /carcolor 1 sau 2 si pana la orice numar vreau exemplu: 2222246 + imi da cu hidden! , As dori sa ma ajutati sa pot fi folosit doar pana la [1-225]
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): in jos
    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?:  Nu.

     

     

    CMD:carcolor11(playerid, params[])
    {
            new saveQuery[600];
            if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
            {
                new color1,color2;
                if(sscanf(params, "ii",color1,color2)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/carcolor [color1] [color2]");
                {
                      new vehicleid = GetPlayerVehicleID(playerid);
                      if(vehicleid == playerVariables[playerid][pCarID1])
                      {
                            format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColour1 = '%d', playerCarColour2 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
                            mysql_tquery(handle,saveQuery);
                            //SetVehicleToRespawn(vehicleid);
                            playerVariables[playerid][pCarColour1][0] = color1;
                            playerVariables[playerid][pCarColour1][1] = color2;
                            SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 1 colors.");
                            ChangeVehicleColor(vehicleid, playerVariables[playerid][pCarColour1][0],playerVariables[playerid][pCarColour1][1]);
                    }
                    else if(vehicleid == playerVariables[playerid][pCarID2])
                    {
                            ChangeVehicleColor(vehicleid, color1, color2);
                            format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColour21 = '%d', playerCarColour22 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
                            mysql_tquery(handle,saveQuery);
                            //SetVehicleToRespawn(vehicleid);
                            playerVariables[playerid][pCarColour2][0] = color1;
                            playerVariables[playerid][pCarColour2][1] = color2;
                            SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 2 colors.");
                    }
                    else if(vehicleid == playerVariables[playerid][pCarID3])
                    {
                            ChangeVehicleColor(vehicleid, color1, color2);
                            format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColor31 = '%d', playerCarColor32 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
                            mysql_tquery(handle,saveQuery);
                            //SetVehicleToRespawn(vehicleid);
                            playerVariables[playerid][pCarColour3][0] = color1;
                            playerVariables[playerid][pCarColour3][1] = color2;
                            SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 3 colors.");
                    }
                    else if(vehicleid == playerVariables[playerid][pCarID4])
                    {
                            ChangeVehicleColor(vehicleid, color1, color2);
                            format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarColor41 = '%d', playerCarColor42 = '%d' WHERE playerID = '%d'",color1, color2, playerVariables[playerid][pInternalID]);
                            mysql_tquery(handle,saveQuery);
                            //SetVehicleToRespawn(vehicleid);
                            playerVariables[playerid][pCarColour4][0] = color1;
                            playerVariables[playerid][pCarColour4][1] = color2;
                            SendClientMessage(playerid, COLOR_YELLOW, "You've succesfull change car 4 colors.");
                    }
                }
            }
            return 1;
    }

  10. imediat

    CMD:find(playerid, params[])
    {
        new targetID;
        if(sscanf(params, "u", targetID)) return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/find [playerid]");
        {
            if(groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 1 || jobVariables[playerVariables[playerid][pJob]][jJobType] == 2 || groupVariables[playerVariables[playerid][pGroup]][gGroupType] == 12)
            {
                new name[MAX_PLAYER_NAME];
                GetPlayerName(targetID, name, MAX_PLAYER_NAME);
                FindTime[playerid] = 1;
                PlayerFind[playerid] = targetID;
                new Float: x, Float: y, Float: z;
                GetPlayerPos(targetID,x,y,z);
                new Float: fDistance = GetPlayerDistanceFromPoint(playerid, x,y,z);
                format(szMessage, 256, "Server has set you a checkpoint to %s (%d). Distance: %.0f meters.",name, targetID, fDistance);
                SCM(playerid,COLOR_YELLOW, szMessage);
                SetPlayerCheckpoint(playerid,x,y,z,3.0);
            }
        }
        return 1;
    }

  11. Problema intalnita (descriere): /getmats bug
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): in jos
    Imagini / Video (optional): - 
    Ati incercat sa rezolvati singur?: Nu

    Cand fac o tura de mats, si daca vreau sa dau find pe hq los vagos ajung acolo si imi da infiniti de bani cum rezolv ?

    CMD:getmats(playerid, params[]) {
        if(jobVariables[playerVariables[playerid][pJob]][jJobType] != 1) return 1;

        if(IsPlayerInRangeOfPoint(playerid, 5, 597.7913,-1245.6721,17.7928)) {
            if(playerVariables[playerid][pCheckpoint] == 0) {
                if(playerVariables[playerid][pMoney] += 1000) {
                    SetPlayerCheckpoint(playerid, 1713.6470,916.7785,10.3817, 10);
                    SendClientMessage(playerid, COLOR_WHITE, "Reach the checkpoint to collect your materials.");
                    playerVariables[playerid][pCheckpoint] = 2;
                }
                else {
                    return SendClientMessage(playerid, COLOR_GREY, "You need to pay $1000 to collect materials.");
                }
            }
            else {
                format(szMessage, sizeof(szMessage), "You already have an active checkpoint (%s), reach it first, or /killcp.", getPlayerCheckpointReason(playerid));
                SendClientMessage(playerid, COLOR_WHITE, szMessage);
            }
        }

        return 1;
    }

  12. Problema intalnita (descriere): Cand dau /gmx imi da din prima vreau cu timer cum fac ?
    Ero(area / rile) / warning-(ul / urile): -
    Liniile de cod / sursa / script-ul(obligatoriu): CMD:gmx(playerid, params[])
    {
      if(playerVariables[playerid][pAdminLevel] < 4)
       SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
         SendClientMessageToAll(COLOR_RED, "Serverul este restartat pentru rezolvarea unor buguri sau un update major.");
         SendClientMessageToAll(COLOR_RED, "Nu e nevoie sa dati Quit ( /q ), serverul revine in 10 secunde.");
         SendClientMessageToAll(COLOR_RED, "Pe forum va fi anunantat daca a aparut ceva nou.");
         GameModeExit();
     return 1;
    }

    Imagini / Video (optional): -
    Ati incercat sa rezolvati singur?:  Nu.

     

    PS: Adaugatimi timer la script de 10 secunde terog

    Sa arate timer la playeri si la urma sa imi scrie The Server is restarting now va rog 

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