Jump to content

Gamemode Burned Edit Ionut!


nQeed

Recommended Posts

  • 5 months later...
On 12/28/2019 at 10:41 AM, nQeed said:

Salut Samp ROMANIA! Azi o sa va arat un mic edit la gamemode-ul Burned dealungul carierei mele de script (5 luni.)

Credite : Edison , Cosminaka47.

Sisteme & Comenzi adaugate:

-Edit sistem crate(Adaugat shop crate la spawn, comenzile (/givecrate /crateforall )Adaugat 'Crate' la comanda /set. )

-Adaugat un mic sistem de emotes.

-Adaugat un mic special quest.

-Adaugat sistem de Driving LIC Dealer(mai multe detalii in videoclip).

-Adaugat sistem de baterii la (/gps).

-Adaugat sistem de rainbow vehicle la upgrade (350 pp).

-Adaugat sistem de Rare account/Consta in accesul la comanda /rshop.

-Adaugata Comanda /fakeapril (Ai fost promovat la admin 1 de cate %s).

-Adaugat la /fpk reason.

-Toate cmd ascunse au fost scoase.

Video :

Download : http://www.girlshare.ro/3769837650.7

Virus Total : https://www.virustotal.com/gui/file/e0e1345f95e129ca86630eee61289d66810ec92d93f385b7c4729239746e6554/detection

Cum am spus si in videoclip , pastrati creditele de la /help!

O zi buna sa aveti.

+1 frate

Link to comment
Share on other sites

Salut Ionut!

Azi am intmpinat o problema cu server-ul meu de samp pe accest GM. Am observat ca , cand dai admin de pe server [/makeadmin] si iesi , cand reintri nu mai ai admin.
Daca dau admin din baza de date atunci ramane !
Cum fac sa rezolv sa dau admin direct de pe server si sa ramana admin-ul.
Link to comment
Share on other sites

La 18.10.2020 la 22:51, Zen a spus:

Salut Ionut!

Azi am intmpinat o problema cu server-ul meu de samp pe accest GM. Am observat ca , cand dai admin de pe server [/makeadmin] si iesi , cand reintri nu mai ai admin.
Daca dau admin din baza de date atunci ramane !
Cum fac sa rezolv sa dau admin direct de pe server si sa ramana admin-ul.

Poftim poate merge asta: 
 

YCMD:setadmin(playerid, params[], help) {

    new id, adminlevel, gString[120];

    if(PlayerInfo[playerid][pAdmin] < 7)
        return SCM(playerid, COLOR_WHITE, AdminOnly);

    if(sscanf(params, "ui", id, adminlevel))
        return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/setadmin <playerid/name> <Admin Level>");

    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID)
        return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");

    if(adminlevel < 0 || adminlevel > 6)
        return SCM(playerid, COLOR_GREY, "Invalid admin level. 0-6");

    if(PlayerInfo[id][pAdmin] > PlayerInfo[playerid][pAdmin])
        return SCM(playerid, COLOR_GREY, "Nu poti folosi aceasta comanda pe acel player. Are admin level mai mare.");

    format(gString, 80, "Ai fost promovat la admin %d de %s", adminlevel, GetName(playerid));
    SCM(id, COLOR_LIGHTBLUE, gString);

    format(gString, 100, "AdmCmd: %s i-a setat lui %s admin level %d.", GetName(playerid), GetName(id), adminlevel);
    SendAdminHelperMessage(COLOR_LOGS, gString);

    if(adminlevel == 0) {
        PlayerInfo[id][pAW] = 0;
        UpdateVar(id, "AW", 0);
        SpecFaction[id] = 0;
        StopFly(playerid);
        UsedFly[playerid] = 0;
        SetPlayerHealthEx(playerid, 100);

        Iter_Remove(PlayerAdmins, id);
    }

    Iter_Add(PlayerAdmins, id);

    finishAchievement(id, 27);
    PlayerInfo[id][pAdmin] = adminlevel;

    new gQuery[180];

    if(adminlevel >= 1)
        format(gQuery, sizeof(gQuery), "UPDATE users SET `Admin`='%d', `HelpedPlayers`='0' WHERE `ID`='%d'", PlayerInfo[id][pAdmin]/*, MD5_Hash(DEFAULT_PASSWORD)*/, PlayerInfo[id][pSQLID]);
    else
        UpdateVar(id, "Admin", PlayerInfo[id][pAdmin]);
    mysql_tquery(SQL, gQuery, "", "");

    return true;
}

Link to comment
Share on other sites

La 18.10.2020 la 22:51, Zen a spus:

Salut Ionut!

Azi am intmpinat o problema cu server-ul meu de samp pe accest GM. Am observat ca , cand dai admin de pe server [/makeadmin] si iesi , cand reintri nu mai ai admin.
Daca dau admin din baza de date atunci ramane !
Cum fac sa rezolv sa dau admin direct de pe server si sa ramana admin-ul.

YCMD:setadmin(playerid, params[], help)
{
    if(IsPlayerConnected(playerid)) {
        if(PlayerInfo[playerid][pAdmin] < 7) return SCM(playerid, COLOR_ERROR, "Nu ai access.");
        new id,adminlevel,sendername[30],giveplayer[30],string[200];
        if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/setadmin <playerid/name> <Admin Level>");
        if(IsPlayerConnected(id)) {
            if(id != INVALID_PLAYER_ID)
            {
                GetPlayerName(id, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
                PlayerInfo[id][pAdmin] = adminlevel;
                PlayerInfo[id][pChar] = 217;
                SetPlayerSkinEx(id, 217);
                printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                format(string, sizeof(string), "Ai fost promovat la admin %d de %s,", adminlevel, sendername);
                SendClientMessage(id, COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "L-ai promovat pe %s la nivel %d admin.", giveplayer,adminlevel);
                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "AdmCmd: Admin %s i-a setat lui %s admin %d.", sendername,giveplayer,adminlevel);
                Iter_Add(PlayerAdmins, id);
                SendAdminMessage(COLOR_LOGS,string,4);
                 new wakaname[25];
                 if(adminlevel == 0) {
                    PlayerInfo[id][pAW] = 0;
                    UpdateVar(id, "AW", 0);
                    SpecFaction[id] = 0;
                    StopFly(playerid);
                    UsedFly[playerid] = 0;
                    SetPlayerHealthEx(playerid, 100);

                    Iter_Remove(PlayerAdmins, id);
                }
                GetPlayerName(id,wakaname,25);
                new str[256];
                mysql_format(SQL, str,256,"UPDATE users SET `Admin`='%d',`CChar`='%d' WHERE `ID`='%d'",PlayerInfo[id][pAdmin],PlayerInfo[id][pChar],PlayerInfo[id][pSQLID]);
                mysql_tquery(SQL,str, "", "");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREY, "Acel player nu este conectat.");
        }
    }
    return true;
}

VIATA ESTE ALCATUITA DIN MARI VISE SI MICI SPERANTE.

a1b3538381bf1898fe0787189f18d9ee.gif

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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