Jump to content

scr3ws0f7

Membru
  • Posts

    153
  • Joined

  • Last visited

    Never

Posts posted by scr3ws0f7

  1. La inceputul GM adaugi

    new CreatedCars[100];

    new CreatedCar = 0;

    -Sub linia public OnPlayerCommandText

    Adaugi:

    [pawn]if(strcmp(cmd, "/veh", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

            if (PlayerInfo[playerid][pAdmin] < 4)

    {

        SendClientMessage(playerid, COLOR_GRAD1, "  you are not authorized to use that command!");

        return 1;

    }

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");

    return 1;

    }

    new car;

    car = strval(tmp);

    if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_GREY, "  Vehicle Number can't be below 400 or above 611 !"); return 1; }

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");

    return 1;

    }

    new color1;

    color1 = strval(tmp);

    if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_GREY, "  Color Number can't be below 0 or above 126 !"); return 1; }

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /veh [carid] [color1] [color2]");

    return 1;

    }

    new color2;

    color2 = strval(tmp);

    if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, "  Color Number can't be below 0 or above 126 !"); return 1; }

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

    GetPlayerPos(playerid, X,Y,Z);

    new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2, 60000);

    CreatedCars[CreatedCar] = carid;

    CreatedCar ++;

    format(string, sizeof(string), "  Vehicle %d spawned.", carid);

    SendClientMessage(playerid, COLOR_GREY, string);

    GetPlayerName(playerid, sendername, sizeof(sendername));[/pawn]

    * Unde ii :  if (PlayerInfo[playerid][pAdmin] < 4) - Inloc de 4 adaugi levelul minim al adminului care poate folosi comanda sau daca vrei ca toti playeri sa poata folosi comanda stergi linia

    Iar /skin :(tot sub linia OnPlayerCommandText )

    [pawn] if (strcmp("/skin", cmd, true) == 0)

            {

            if (PlayerInfo[playerid][pAdmin] >= 1)

            {

      new idskin;

                    tmp = strtok(cmdtext, idx);

                    if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /skin [skinid]");

                    idskin = strval(tmp);

                    if(idskin >= 0 && idskin <= 299)

                    {

                            SetPlayerSkin(playerid,idskin);

                            format(string, 256, " your skinid is now %d", idskin);

                            SendClientMessage(playerid, COLOR_GREY, string);

                    }

    else if(idskin < 0 || idskin > 299)

                    {

                            SendClientMessage(playerid, COLOR_GREY, " don't go under 1 and over 299.");

                    }

                    return 1;

    }

            }[/pawn]

    *if (PlayerInfo[playerid][pAdmin] >= 1) : TOT asa inloc de 1 pui lvl min al adminului care poate sa foloseasca cmd

    esti total paralel ce tot zici tu cu padmin....  :shocked:

  2. RuNix" post="73345" timestamp="1305976905"]

    in ladmin , lux admin tot porcaria aia  :huh:

    mai bine pune in loc de

    if(PlayerInfo[playerid][Level] >= 3) {
    asa
    if(PlayerInfo[playerid][Level] >= 0) {

    fara sa modificati ca sa va dea erori ... :)

    runix are dreptate e mai simplu asa stergi degeaba liniile alea  :embarrassed:

  3. nu stiu ce e /veh

    "veh" adica comenzi pentru masina? (gen.: deschide capota,inchide,alarma,lumini,motor on/off)

    si skin:

    sus de tot :

    [pawn]new newskins[]={265,266,267,269,270,271,272};[/pawn]

    la public OnPlayerCommandText

    [pawn] if (strcmp(cmd, "/skin", true) == 0 )

    {

    new skin[256];

    skin = strtok(cmdtext, idx);

    if (!strlen(skin))

    {

    SendClientMessage(playerid, COLOR_RED, "Tasteaza: /skin [id skin]");

    return 1;

    }

    new newskin = strval(skin);

    if ((newskin < 0) || (newskin > 299) || IsInvalidSkin(newskin)) {

    SendClientMessage(playerid, COLOR_RED, "Server: Acest skin nu exista!");

    return 1;

    }

    if (GetPlayerMoney(playerid) >= 0)

    {

    SetPlayerSkin(playerid, newskin);

    GivePlayerMoney(playerid,-0);

    format(string, 128, "Server: Skinul a fost schimbat in %d :)", newskin);

    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

    }

    else

    {

    SendClientMessage(playerid, COLOR_RED, "Nu poti schimba skin-ul o_ 0");

    }

    return 1;

    }[/pawn]

    si jos de tot

    [pawn]IsInvalidSkin(skinid)

    {

        #define MAX_BAD_SKINS 22

        new InSkin[MAX_BAD_SKINS] = {

        0, 3, 4, 5, 6, 8, 42, 65, 74, 86,

        119, 149, 208,  273, 289};

        for (new i = 0; i < MAX_BAD_SKINS; i++) {

        if (skinid == InSkin) return true;}

        return 0;

    }[/pawn]

  4. Pawno:

    D:\RPG\gamemodes\RPGv2.pwn(2230) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2234) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2238) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2242) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2246) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2250) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2254) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2258) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2262) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2266) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2270) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2274) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2278) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2282) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2301) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2305) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2309) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2313) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2317) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2321) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2325) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2329) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2333) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2337) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2341) : error 017: undefined symbol "CreateVehicleEx"
    D:\RPG\gamemodes\RPGv2.pwn(2345) : error 017: undefined symbol "CreateVehicleEx"
    
    Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    26 Errors.
    cam asa arata :|
    			if(listitem == 0) // Admiral
    			{
    				CreateVehicleEx(playerid,445, X,Y,Z+1, Angle, random(126), random(126), -1);

    ma streseaza de cateva ore  :embarrassed: si nu'i dau de cap  pls help :(

  5. lol deci esti...

    1 descarci asta de AICI

    2 il dezarhivezi

    3 pui gm-ul in "gamemodes"(unde ai dezarhivat Serverul)

    4 intri in server.cfg modificci gamemode0 cu numele gm-ului

    si server.cfg ar trebui sa arate cam asa

    echo Executing Server Config...
    lanmode 0
    rcon_password [parola-ta]
    maxplayers 25
    port 7777	
    hostname [NumeServer]
    gamemode0 [nume gm]
    filterscripts [daca ai si cateva fs pui numele aici]
    plugins [liber]
    announce 1
    query 1
    weburl www.sa-mp.ro
    maxnpc 0
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    mapname [Nume-mapa]

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