Jump to content

InceMan

Membru
  • Posts

    755
  • Joined

  • Last visited

  • Days Won

    42

Posts posted by InceMan

  1. Problema intalnita (descriere): nu merge sa zbor cu fly ce trebuie sa fac sa pot zbura cu ea in ceruri
    Ero(area / rile) / warning-(ul / urile):nu sunt
    Liniile de cod / sursa / script-ul(obligatoriu):

    if (strcmp(cmd, "/fly", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                if (PlayerData[playerid][pAdmin] >= 2)
                {
                    new Float:px, Float:py, Float:pz, Float:pa;
                    GetPlayerFacingAngle(playerid,pa);
                    if(pa >= 0.0 && pa <= 22.5) //n1
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px, py+30, pz+5);
                    }
                    if(pa >= 332.5 && pa < 0.0) //n2
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px, py+30, pz+5);
                    }
                    if(pa >= 22.5 && pa <= 67.5) //nw
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px-15, py+15, pz+5);
                    }
                    if(pa >= 67.5 && pa <= 112.5) //w
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px-30, py, pz+5);
                    }
                    if(pa >= 112.5 && pa <= 157.5) //sw
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px-15, py-15, pz+5);
                    }
                    if(pa >= 157.5 && pa <= 202.5) //s
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px, py-30, pz+5);
                    }
                    if(pa >= 202.5 && pa <= 247.5)//se
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px+15, py-15, pz+5);
                    }
                    if(pa >= 247.5 && pa <= 292.5)//e
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px+30, py, pz+5);
                    }
                    if(pa >= 292.5 && pa <= 332.5)//e
                    {
                        GetPlayerPos(playerid, px, py, pz);
                        SetPlayerPosEx(playerid, px+15, py+15, pz+5);
                    }
                }
                else
                {
                    SendError(playerid,cmd);
                }
            }
            return 1;
        }


    Imagini / Video (optional): nu am am-i facut
    Ati incercat sa rezolvati singur?: da

  2. Problema intalnita (descriere): nu merge sa setez skinul la raza de 2 metri se seteaza la tot serverul am incercat sa-l fac dar nu reusesc
    Ero(area / rile) / warning-(ul / urile):nu sunt
    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:askin(playerid, params[])
    {
    new Float:skinid,range;
    new skin;
     if(sscanf(params, "df", skin, range))
     
        if(sscanf(params, "f", skinid )) return SendClientMessage(playerid, -1, "Syntax: /askin <skinid> <Distanta 5.0 > ");
        if(playerVariables[playerid][pAdminLevel] >= 2)
        {
                if(skinid < 0 || skinid > 311)
        return SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 311!");


      new Float: Pos[3];
            GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            format(szMessage, sizeof(szMessage), "{00CC00}Admin %s A schimbat skinul tuturor din raza de %d.", playerVariables[playerid][pNormalName]);
            foreach(Player, i)
            {
               if(ProxDetectorS(range, playerid, i))
                {
                    SetPlayerSkin(i, skinid);
      GetPlayerSkin(i);
                    SendClientMessage(i, -1, szMessage);
                }
            }
        }
        return 1;
    }


    Imagini / Video (optional): nu am am-i facut
    Ati incercat sa rezolvati singur?: da

  3. Problema intalnita (descriere): ma cinui de 30 min sa fac sa mearga sa setez la evente skin pe o distanta el se seteaza dar da la toti in rest vreau sa il setez sa pot da pe 2 metri nu la toti
    Ero(area / rile) / warning-(ul / urile):nu sunt
    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:askin1(playerid, params[])
    {
    new Float:skinid,range;

        if(sscanf(params, "d", range))
        
        if(sscanf(params, "f", skinid )) return SendClientMessage(playerid, -1, "Syntax: /askin <skinid> <Distanta 5.0 > ");
        if(playerVariables[playerid][pAdminLevel] >= 2)
        {
                if(skinid < 0 || skinid > 311)
                return SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 311!");


            new Float: Pos[3];
            GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            format(szMessage, sizeof(szMessage), "{00CC00}Admin %s A schimbat skinul tuturor din raza de %d.", playerVariables[playerid][pNormalName]);
            foreach(Player, i)
            {
                if(ProxDetectorS(skinid, playerid, i))
                {
                    SetPlayerSkin(i, skinid);
            GetPlayerSkin(i);
                    SendClientMessage(i, -1, szMessage);
                }
            }
        }
        return 1;
    }


    Imagini / Video (optional): nu am am-i facut
    Ati incercat sa rezolvati singur?: da

  4. multumesc merge acum sa dau la toti jucatori numai ca imi da o gramada de mesaje  cu Admin %s a schimbat skinul tuturor din raza de %dm

    de exemplul eu am asa si imi da un singur mesaj CMD:ared(playerid, params[])
    {
        new Float:range;
        if(sscanf(params, "f", range)) return SendClientMessage(playerid, -1, "Syntax: /acolorred [Distanta 10.0]");
        if(playerVariables[playerid][pAdminLevel] >= 1)
        {
            new Float: Pos[3];
            GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
            format(szMessage, sizeof(szMessage), "{00CC00}Admin %s gaved color Red to everyone in his event.", playerVariables[playerid][pNormalName]);
            foreach(Player, i)
            {
                if(ProxDetectorS(range, playerid, i))
                {
                    playerVariables[playerid][pDRED];
                    SetPlayerColor(i,COLOR_RED);
                    SendClientMessage(i, -1, szMessage);
                }
            }
        }
        return 1;

    asta e facuta de mine dar aia cu skinul nu am ideie 

     

  5.     GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        format(string, sizeof(string), "You set %s's skin to %d.", giveplayer, skin);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        playerVariables[id][pSkin] = skin;
                        SetPlayerSkin(id, skin);
                        new wakaname[25];
                        GetPlayerName(id,wakaname,25);
                        new str[128];
                        format(str,128,"UPDATE `playeraccounts` SET `playerSkin`='%d' WHERE `playerID`='%d'",skin,playerVariables[id][pInternalID]);
                        mysql_tquery(handle,str);

     

  6. Problema intalnita (descriere): cum pot sa fac sa dau un skin la toti jucatori si cand ii dau kill sa dispara skinul
    Ero(area / rile) / warning-(ul / urile): nu are erori
    Liniile de cod / sursa / script-ul(obligatoriu):
    CMD:skinrange(playerid,params[])
    {

    if(playerVariables[playerid][pAdminLevel] >= 1)

    {
        new skinnumber, skinid, string[128];
        if(sscanf(params, "d", skinid)) SendClientMessage(playerid, -1, "{ffff00}=USAGE=: {ffffff}/skin <skinid> <Distanta>");
        else if(skinid < 0 || skinid > 299) SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 299!");
        else
        {
            SetPlayerSkin(playerid, skinid);
               skinnumber = GetPlayerSkin(playerid);
            format(string, sizeof(string), "Event: {ddedf4}Admin %s a schimbat skinul tuturor din raza de %dm !", skinnumber);
            SendClientMessage(playerid, -1, string);
        }

    }
        return 1;
    }

    Imagini / Video (optional):nu am
    Ati incercat sa rezolvati singur?:da si nu am reusit

  7. cand dau /w cuiva imi zice That player's whispers aren't enabled cum fac sa nu mai apara si playeri sa poata vorbii nici comanda enabled nu o am

    CMD:whisper(playerid, params[]) {
        new
            message[128],
            id;

        if(sscanf(params, "us[128]", id, message)) {
            SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/whisper [playerid] [message]");
        }
        else
        {
            if(FindIP(message) || GasesteReclama(message))
            {
                playerVariables[playerid][pMuted] = 5;
                format(szMessage, sizeof(szMessage), "%s is possibly server advertisting (%s)", playerVariables[playerid][pNormalName], message);
                submitToHelpersAndAdmins(szMessage, COLOR_RED);
                return 0;
            }
            if(IsPlayerConnected(id) && playerVariables[id][pStatus] >= 1) {
                if(IsPlayerInRangeOfPlayer(playerid, id, 2.0)) {
                    if(playerVariables[id][pSeeWhisper] == 0) {
                        new
                            giveplayerName[MAX_PLAYER_NAME];

                        GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);

                        format(szMessage, sizeof(szMessage), "%s whispers: %s", szPlayerName, message);
                        SendClientMessage(id, COLOR_NICESKY, szMessage);

                        GetPlayerName(id, giveplayerName, MAX_PLAYER_NAME);

                        format(szMessage, sizeof(szMessage), "You whisper to %s: %s", giveplayerName, message);
                        SendClientMessage(playerid, COLOR_NICESKY, szMessage);

                    }
                    else SendClientMessage(playerid, COLOR_GREY, "You're too far away.");
                }
                else {
                    SendClientMessage(playerid, COLOR_GREY, "That player's whispers aren't enabled.");
                }
            }
            else {
                SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
            }
        }
        return 1;
    }
     

  8. multumesc!

    mai am o mica problema tot ma chinuiesc de 2 zile sa fac /aclear pentru admin si /unjali si nu reusesc

    CMD:clear(playerid, params[])
    {
        new id, szPlayerName2[MAX_PLAYER_NAME];
        if(sscanf(params, "u", id)) return SCM(playerid, -1, "Syntax: /clear <playerid>");
        new group = playerVariables[playerid][pGroup];
        
        GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);
        GetPlayerName(id, szPlayerName2, MAX_PLAYER_NAME);
        if(group == 1 || group == 2 || group == 3 || group == 5  )
        {
            if(id != INVALID_PLAYER_ID)
            {
                        if(playerVariables[id][pWarrants] == 0)
                        {
                            SCM(playerid, COLOR_RADIOCHAT, "Dispatch: This player is not wanted!");
                        }
                        else
                        {
                            playerVariables[id][pWarrants] = 0;
                            SetPlayerWantedLevel(id, 0);
                            format(szMessage, sizeof(szMessage), "Dispatch: %s cleared %s's wanted.", szPlayerName, szPlayerName2);
                            sendDepartmentMessage(COLOR_RADIOCHAT, szMessage);

                            format(szMessage, sizeof(szMessage), "%s cleared your wanted.", szPlayerName);
                            SCM(id, COLOR_RADIOCHAT, szMessage);
                            format(playerVariables[id][pCrimeReason], 90, "");
                        }
            }
            else
            {
                SCM(playerid, -1, "This player is not connected!");
            }
        }
        else
        {
            SCM(playerid, -1, "You are not a cop!");
        }
        return 1;
    }

     

    ///////////////

    CMD:jail(playerid, params[]) {
        new sendername[MAX_PLAYER_NAME];
        if(playerVariables[playerid][pAdminLevel] >= 1) {
            new
                minutes,
                userID,
                reason[64];

            if(sscanf(params, "uds[64]", userID, minutes, reason)) {
                return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/jail [playerid] [minutes] [reason]");
            }
            else {
                if(!IsPlayerConnected(userID)) return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
                if(playerVariables[playerid][pAdminLevel] >= playerVariables[userID][pAdminLevel]){
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    GetPlayerName(userID, szPlayerName, MAX_PLAYER_NAME);
                    format(szMessage, sizeof(szMessage), "Jail: %s has been jailed by %s, reason: %s (%d minutes).", szPlayerName, sendername, reason, minutes);
                    SendClientMessageToAll(COLOR_LIGHTRED, szMessage);

                    new query[256];
                    format(query, sizeof(query), "INSERT INTO lastpunish (text, playerID) VALUES ('%s', '%d')", szMessage,playerVariables[userID][pInternalID]);
                    mysql_tquery(handle,query);

                    adminLog(szMessage);
                    playerVariables[userID][pPrisonTime] = minutes * 60;
                    playerVariables[userID][pPrisonID] = 2;

                    ResetPlayerWeapons(userID);
                    SetPlayerInterior(userID, 10);
                    SetPlayerVirtualWorld(userID, 0);
                    SetPlayerPos(userID, 223.15, 110.0, 999.02);
                }
                else {
                    return SendClientMessage(playerid, COLOR_GREY, "You can't jail a higher level administrator.");
                }
            }
        }
        else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
        return 1;
    }
     

  9. vreau sa fac un system de bonus pentru incepatori si daca am level 5 si dau /bonus imi ea level 4 si imi da 2 de-ce oare

    CMD:bonus(playerid, params[]){
        {
            if(IsPlayerConnected(playerid))
            {

                  
                    playerVariables[playerid][pLevel] = 2;
        playerVariables[playerid][pCash] = 500000;
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Felicitari, ai primit Level 2 + $500,000  din partea staff-ului !");
                }
                else
                {
                SendClientMessage(playerid, COLOR_GREEN, "{CCCCCC}[BONUS] Ai folosit deja aceasta comanda sau nu ai level 1 !");
                }
            }
            return 1;
        } Ma puteti Ajuta multumesc!

  10. 23 hours ago, Geani said:

    salut am si eu un gm bugged si la un timp imi da restart singur afara si ma da sa ma Loading din nou cate-o data imi da si banned server ce trebuie sa-i fac casa nu mai am problema accesta.

    in log imi da asa cand imi da restart

    [part] Shower has left the server (0:0)
    [23:40:34] [connection] 46.102.92.239:51633 requests connection cookie.
    [23:40:35] [connection] incoming connection: 46.102.92.239:51633 id: 0
    [23:40:35] [join] Shower has joined the server (0:46.102.92.239)
    [23:40:35] Player Shower (0) reports client version: 0.3.7

     

  11. salut am si eu un gm bugged si la un timp imi da restart singur afara si ma da sa ma Loading din nou cate-o data imi da si banned server ce trebuie sa-i fac casa nu mai am problema accesta.

    in log imi da asa cand imi da restart

    [part] Shower has left the server (0:0)
    [23:40:34] [connection] 46.102.92.239:51633 requests connection cookie.
    [23:40:35] [connection] incoming connection: 46.102.92.239:51633 id: 0
    [23:40:35] [join] Shower has joined the server (0:46.102.92.239)
    [23:40:35] Player Shower (0) reports client version: 0.3.7

  12. Problema intalnita (descriere):cand dau /aod off duty nu imi scade viata la 100hp
    Ero(area / rile) / warning-(ul / urile): nu am erori
    Liniile de cod / sursa / script-ul(obligatoriu):

    CMD:aod(playerid, params[])
    {
        if(playerVariables[playerid][pAdminLevel] >= 1)
        {
                switch(playerVariables[playerid][phod])
                {
                    case 0:
                    {
                        playerVariables[playerid][phod] = 1;
                        format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now on administrative duty.", playerVariables[playerid][pNormalName], playerid);
                    
                           SetPlayerHealth(playerid,999999999999999);
                           SetPlayerArmour(playerid,999999999999999);
                           SetPlayerToTeamColor(playerid);
                    }
                    case 1:
                    {
                        playerVariables[playerid][phod] = 0;
                        format(szMessage, sizeof(szMessage), "Notice: {FFFFFF}Admin %s (%d) is now off administrative duty.", playerVariables[playerid][pNormalName], playerid);
                       
                    }

                }
                submitToHelpersAndAdmins(szMessage, COLOR_HOTORANGE);

        }
        return 1;
    }


    Imagini / Video (optional):
    Ati incercat sa rezolvati singur?: da dar nu merge cand dau /aod off duty nu imi scade viata la 100hp

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