Jump to content

I O B I T

Membru
  • Posts

    124
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by I O B I T

  1. comanda goto  din GM  ( daca ajuta cu ceva)  

     

    CMD:goto(playerid, params[])
    {
        new giveplayerid, splayer[25];
        new Float:gx, Float:gy, Float:gz;
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "You need to login first.");
        if(PlayerInfo[playerid][pHelper] > 0 && HelperDuty[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Trebuie sa fii la datorie ca sa folosesti aceasta comanda. Tasteaza /hod");
        if(sscanf(params,"s[25]", splayer)) return SendClientMessage(playerid, COLOR_SYN, "(SERVER):{FFFFFF} /goto <Player ID/Name>");
        {
            if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
            {
            if(GetPlayers(splayer) == INVALID_PLAYER_ID) return InvalidPlayer(playerid);
            else if(GetPlayers(splayer) == 1000) return ToManyResults(playerid);
            else if(GetPlayers(splayer) == 1001) return ShowResults(playerid, splayer);
            else giveplayerid = GetPlayers(splayer);

            if(AFK[playerid] == 1) return SendClientMessage(playerid, COLOR_ERROR, "You are sleeping.");

            format(gString, sizeof(gString), "%s a mers la %s.",GetName(playerid), GetName(giveplayerid));
            if(PlayerInfo[playerid][pAdmin]) CMDRaport(gString, 1, 0);
            else CMDRaport(gString, 0, 1);

            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                format(gString, sizeof(gString), "Admin %s s-a teleportat la tine!",GetName(playerid));
                SendClientMessage(giveplayerid, COLOR_SYN2, gString);
            }
            if (PlayerInfo[playerid][pHelper] >= 1)
            {
                 format(gString, sizeof(gString), "Helper %s s-a teleportat la tine!",GetName(playerid));
                 SendClientMessage(giveplayerid, COLOR_SYN2, gString);
            }

            SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
            SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));

            GetPlayerPos(giveplayerid, gx, gy, gz);
            if(GetPlayerState(playerid) == 2 && GetPlayerInterior(giveplayerid) == 0)
            {
                new gcar = GetPlayerVehicleID(playerid);
                SetVehiclePos(gcar, gx, gy+4, gz);
            }
            else
            {
                SetPlayerPos(playerid, gx, gy+2, gz);
            }
            BizzEntered[playerid] = BizzEntered[giveplayerid];
            HouseEntered[playerid] = HouseEntered[giveplayerid];
            }
            else SendClientMessage(playerid, COLOR_ERROR, "Your admin/helper level is not high enough to use this command.");
        }
        return 1;
    }
     

  2. Cum pot sa fac ca un admin 1-5 sa nu poata da /goto la un admin de rank 6? 

    Adica sa fie un fel de restrictie care poate fi " activata " dintr-o comanda.

    ex :  /antigoto  si nu se mai poate teleporta nimeni la mine ( eu find admin 6 ) prin comanda /goto

    Nush daca m-am exprimat corect dar sper sa inteleaga cineva ce am vrut eu sa zic. :) 

  3.         format(coordsstring, sizeof(coordsstring), "IP: %s\n",playersip);
                strcat(string2,coordsstring);
            }
              ShowPlayerDialog( playerid, DIALOG_FACTIONS, DIALOG_STYLE_MSGBOX, "Stats List", string2, "Ok", "" );

  4. CMD:stats(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
        if(SomatePermission[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "{FEC3AC}Asteapta 5 secunde.");
        if(PlayerInfo[playerid][pLevel] < 1) return SCM(playerid,COLOR_WHITE,"{FFB870}Command currently inaccessible.");
        PlayerInfo[playerid][pStatus] = 1;
        new qqerry[128];
        format(qqerry, sizeof(qqerry), "UPDATE `users` SET `Status` = '1' WHERE `name` = '%s'", GetPName(playerid));
        mysql_query(SQL,qqerry);
        ShowStats(playerid,playerid);
                timersoo[playerid] = SetTimerEx("SetSomate", 5000, 1, "i", playerid);
                somatee[playerid] = 0;
                SomatePermission[playerid] = 0;
        return 1;
    }

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