Jump to content

Iulian

Membru
  • Posts

    191
  • Joined

  • Last visited

Posts posted by Iulian

  1. [pawn] if(strcmp(cmd, "/stergetuning", true) == 0)

        {

        if (PlayerInfo[playerid][pAdmin] > 0)

            {

                new veh = GetPlayerVehicleID(playerid);

                if(IsPlayerInAnyVehicle(playerid) == 0)

                {

                    SendClientMessage(playerid,COLOR_GOLD,"* Trebuie sa fii intr-un vehicul!");

                }

                else

                {

                    RemoveVehicleComponent(veh, 1000);

                    RemoveVehicleComponent(veh, 1001);

                    RemoveVehicleComponent(veh, 1002);

                    RemoveVehicleComponent(veh, 1003);

                    RemoveVehicleComponent(veh, 1004);

                    RemoveVehicleComponent(veh, 1005);

                    RemoveVehicleComponent(veh, 1006);

                    RemoveVehicleComponent(veh, 1007);

                    RemoveVehicleComponent(veh, 1008);

                    RemoveVehicleComponent(veh, 1009);

                    RemoveVehicleComponent(veh, 1010);

                    RemoveVehicleComponent(veh, 1011);

                    RemoveVehicleComponent(veh, 1012);

                    RemoveVehicleComponent(veh, 1013);

                    RemoveVehicleComponent(veh, 1014);

                    RemoveVehicleComponent(veh, 1015);

                    RemoveVehicleComponent(veh, 1016);

                    RemoveVehicleComponent(veh, 1017);

                    RemoveVehicleComponent(veh, 1018);

                    RemoveVehicleComponent(veh, 1019);

                    RemoveVehicleComponent(veh, 1020);

                    SendClientMessage(playerid, COLOR_GOLD,"* Ai scos tuningul masinii");

                }

              else

    {

        SendClientMessage(playerid, COLOR_GOLD, "Nu esti Admin");

        return 1;

                }

            }

                return 1;

        }[/pawn]

    si imi da eroare la ultimul else

    [pawn]C:\Users\Iuly\Desktop\Desk\SAMP\Viata Virtuala v1.0\gamemodes\ViataVirtualaRP-LS.pwn(34548) : error 029: invalid expression, assumed zero[/pawn]

    Comanda e facuta de mine de la 0. Am incercat sa ii adaug doar daca esti admin sa o poti folosi :) Dar imi da eroare pe acolo ! HELP PLEASE

  2. if (!strcmp("/speedup", cmdtext))

        {

    if(IsPlayerInAnyVehicle(playerid))

    {

    new Float:X,Float:Y,Float:Z;

    GetVehicleVelocity(GetPlayerVehicleID(playerid), X, Y, Z);

            SetVehicleVelocity(GetPlayerVehicleID(playerid), X * 1.6, Y * 1.6, Z * 1.6);

    }

    return 1;

        }

    }

    Vreau sa modific aceasta comanda.

    Vreu sa o fac cand sunt intr-o masina ex cu id 400 si apas pe W sa faca aia cu SetVehicleVelocity.. ma ajutati?

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