Jump to content

Users

Membru
  • Posts

    117
  • Joined

  • Last visited

    Never

Posts posted by Users

  1. Salut , ce pot face ca e un hacker care intra pe srv si face reclama si ne scoate adminu mie si celuilalt owner ... am incercat chestia aia cu /asdrconWsda infernus sau cum era si nu merge .... ce mai pot face foloseste GM-ul ala eGammer

  2. Salut , am si eu comanda : [pawn]         else if(strcmp(x_nr,"plate",true) == 0)

            {

    new vehid;

    vehid = GetPlayerVehicleID(playerid);

    if(IsPlayerInVehicle(playerid, vehid) || PlayerInfo[vehid][pPcarkey] != -1 && PlayerInfo[vehid][pPcarkey2] != -1 && PlayerInfo[vehid][pPcarkey3] != -1)

    {

            if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)

                        {

                            SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /v plate [newplate]");

                            return 1;

        }

        new Float:XX,Float:YY,Float:ZZ,Float:AA;

                        new Float:CarHP, Float:OldCarHP;

                        new panels,tires;

                    GetVehicleHealth(vehid, CarHP);

                    GetVehicleDamageStatus(vehid,panels,doors,lights,tires);

            OldCarHP = CarHP;

                    format(CarInfo[vehid][cLicense], 32 ,"%s",cmdtext[idx]);

                        SetVehicleNumberPlate(vehid,CarInfo[vehid][cLicense]);

                    GetVehiclePos(vehid,XX,YY,ZZ);

                    GetVehicleZAngle(vehid, AA);

                    SetVehicleToRespawn(vehid);

                    SetVehiclePos(vehid,XX,YY,ZZ);

                    SetVehicleZAngle(vehid, AA);

                    PutPlayerInVehicle(playerid,vehid,0);

                    SetVehicleHealth(vehid, OldCarHP);

                    UpdateVehicleDamageStatus(vehid,panels,doors,lights,tires);

                    format(string, sizeof(string), "{FFFF00}You have set your vehicle's plate to:{FFFFFF} %s", CarInfo[vehid][cLicense]);

                    SendClientMessage(playerid, 0xFFFFFFFF, string);

                    OnPropUpdate();

                }

                else

                {

                        SendClientMessage(playerid, 0xFFFFFFAA, "Nu esti in masina ta personala pentru a putea schimba NR de Inmatriculare.");

        return 1;

        }

            }[/pawn]

    si nu stiu cum sa fac sa ramane numaru de inmatriculare dupa /v park , apoi cand dau RR la serv apare numarul dar doar prima litare din el.Ce pot face?

  3. not , was very easy , thanx !! , but : [pawn]C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5674) : warning 219: local variable "Textdraw0" shadows a variable at a preceding level

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : warning 215: expression has no effect

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 001: expected token: ";", but found "]"

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : error 029: invalid expression, assumed zero

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(5676) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.[/pawn]

    la :

    [pawn]format(string, sizeof string, "Level: %d", PlayerInfo[playerid][pLevel]);

    5676 - TextDrawSetString(Text: Textdraw0[playerid], string);

    TextDrawShowForPlayer(playerid, Text: Textdraw0[playerid]);[/pawn]

  4. allut am si eu aceste erori :

    [pawn]C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(11752) : error 017: undefined symbol "targetid"

    C:\Users\Gabi\Desktop\Cruciatii Gamemode\samp03\gamemodes\EFL.pwn(11754) : error 035: argument type mismatch (argument 1)

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase[/pawn]

    2 Errors.

    la :

    [pawn]new level = PlayerInfo[targetid][pLevel];

        format(string, sizeof(string), "Level : %s", level);

        Textdraw0 = TextDrawCreate(string);

        TextDrawBackgroundColor(Textdraw0, -65281);

        TextDrawFont(Textdraw0, 2);

        TextDrawLetterSize(Textdraw0, 0.509948, 1.399999);

        TextDrawColor(Textdraw0, 16711935);

        TextDrawSetOutline(Textdraw0, 1);

        TextDrawSetProportional(Textdraw0, 1);[/pawn]

    si nu stiu ce sa ii mai fac 

    EDIT : este pus la OnGameModeInit

  5. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
        if(newkeys & 4)// <- ALT, 1 pt CTRL
        {
            if(GetPlayerState(playerid) == 2)
            {
                new veid = GetPlayerVehicleID( playerid );
                if(GetVehicleModel( veid ) == 411) //infernus
                {
                    new Float:X,Float:Y,Float:Z;
                    GetVehicleVelocity(veid,X,Y,Z);
                    SetVehicleVelocity(veid,X * 1.3, Y * 1.3, Z * 1.3);
                }
            }
        }
    }
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
        if(newkeys & 4)// <- ALT, 1 pt CTRL
        {
            if(GetPlayerState(playerid) == 2)
            {
                new veid = GetPlayerVehicleID( playerid );
                if(veid == 44) //masina cu id 44
                {
                    new Float:X,Float:Y,Float:Z;
                    GetVehicleVelocity(veid,X,Y,Z);
                    SetVehicleVelocity(veid,X * 1.3, Y * 1.3, Z * 1.3);
                }
            }
        }
    }

    Care este diferenta , ca primul mi l-ai facut pentru toate modelele si al doilea pentru id 44 dar kre e dif.?

    Si ce inseamna Alt , 1 ptr CTRL?

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