Jump to content

CosmynPintea

Membru
  • Posts

    42
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by CosmynPintea

  1. Uite /vre:

    CMD:vre(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
        if(PlayerInfo[playerid][pAdmin] > 0)
        {
            new string[128],sendername[30];
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(IsPlayerInAnyVehicle(playerid))
            {
                new car = GetPlayerVehicleID(playerid), count;
                for(new x; x < MAX_VEHICLES; x++)
                {
                    if(Carspawn[x] == car)
                    {
                        DestroyVehicle(x);
                        Carspawn[x] = 0;
                        count++;
                        format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,x);
                        ABroadCast(COLOR_ADMCOMMANDS,string,1);
                        break;
                    }
                }
                if(count == 0)
                {
                    SetVehicleToRespawnEx(car);
                    format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,car);
                    ABroadCast(COLOR_ADMCOMMANDS,string,1);
                }
            }
            else
            {
                new car, count;
                if(sscanf(params, "d",car)) return SCM(playerid, COLOR_GREY, "Syntax:{FFFFFF} /vre [car id]");
                new bool:unwanted[MAX_VEHICLES];
                for(new player=0; player<MAX_PLAYERS; player++)
                 {
                     if(IsPlayerInAnyVehicle(player))
                     {
                         unwanted[GetPlayerVehicleID(player)]=true;
                     }
                 }
                 if(!unwanted[car]) 
                {
                    for(new x; x < MAX_VEHICLES; x++)
                    {
                        if(Carspawn[x] == car)
                        {
                            if(!unwanted[car])
                            {
                                DestroyVehicle(x);
                                Carspawn[x] = 0;
                                count++;
                                format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,x);
                                ABroadCast(COLOR_ADMCOMMANDS,string,1);
                                break;
                            }
                        }
                    }
                    if(count == 0)
                    {
                        if(!unwanted[car]) 
                        {
                            SetVehicleToRespawnEx(car);
                            format(string,sizeof(string),"AdmCmd: Admin %s respawned vehicle %d.",sendername,car);
                            ABroadCast(COLOR_ADMCOMMANDS,string,1);
                        }
                    }
                }
            }
        }
        else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
        return 1;
    }

    Si /getcar:

    CMD:getcar(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 1)
            {
                    new plo;
                if(sscanf(params, "i",plo)) return SendClientMessage(playerid, COLOR_GREY, "Syntax:{FFFFFF} /getcar [car id]");
                new Float:plocx,Float:plocy,Float:plocz;
                new interiorr = GetPlayerInterior(playerid);
                new virtuall = GetPlayerVirtualWorld(playerid);
                GetPlayerPos(playerid, plocx, plocy, plocz);
                SetVehiclePos(plo,plocx,plocy+4, plocz);
                GetVehiclePos(plo, old_veh_pos[plo][0], old_veh_pos[plo][1], old_veh_pos[plo][2]);
                LinkVehicleToInterior(plo, interiorr);
                SetVehicleVirtualWorld(plo, virtuall);
            }
            else return SendClientMessage(playerid, COLOR_LIGHTGREEN3, AdminOnly);
        }
        return 1;
    }

  2. Azi m-am gandit sa va fac un tutorial cu o comanda /fps care arata tickretul de pe servar stiu ca este o comanda banala dar ii facut pentru incepatorii!
    CMD:fps(playerid, params[])
    {
       new string[128];
       format(string, sizeof(string), "Tickrate: %d", GetServerTickRate());
       SendClientMessage(playerid, -1, string);
       GetServerTickRate();
       return 1;
    }
  3. Cum sa faci bani online cu cryptomonede!!

     

    Mai sunt cateva ore pentru a te inscrie si castiga gratis 5 monede LEGITCOIN valorate in 10$ in momentul lansarii oficiale la 1 Martie.
    Se preconizeaza ca pana pe 30 martie valoare monedei virtuale va fii de 70 dolari!!!
    Eu zic sa va inscrietii ca in cateva ore nu mai prindetii bonusu de 5 monede gratis!!
    Uitati un link cu care va puteti inscrie: http://legt.me/210261
    • Like 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.