Jump to content

d3nTz1k

Membru
  • Posts

    27
  • Joined

  • Last visited

    Never

Posts posted by d3nTz1k

  1. am si eu un script care prin comanda /apark pot parca orice masina doresc problema e urmatoarea cand sunt in masina si dau /apark imi apare doar mesajul masina a fost parcata as vrea ca pe langa aces mesaj sa se distruga automat masina si sa apara in locul ales de mine :) ca si cum as da eu /rac

    [pawn] if (strcmp("/apark", cmdtext, true, 10) == 0)

    {

    if(!IsPlayerInAnyVehicle(playerid)){return 1;}

    if(GetCreatorID(vehicleid)!=0)

    {

    new Float:vx,Float:vy,Float:vz,Float:va;

    GetVehiclePos(GetPlayerVehicleID(playerid),vx,vy,vz);

    GetVehicleZAngle(GetPlayerVehicleID(playerid),va);

    VehicleSystem[GetCreatorID(vehicleid)][x]=vx;

    VehicleSystem[GetCreatorID(vehicleid)][y]=vy;

    VehicleSystem[GetCreatorID(vehicleid)][z]=vz;

    VehicleSystem[GetCreatorID(vehicleid)][a]=va;

    SendClientMessage(playerid,WHITE,"Masina Parcata Cu Succes!");

    SaveTool();

    DestroyVehicle(carid);

    LoadComponents(thiscar);

    }

    else

    {

    SendClientMessage(playerid,WHITE," Nu poti parca aceasta masina!");

    }

    return 1;

    }[/pawn]

  2. Am si eu fs-url carownership l-am instalat exact cum scrie acolo dar am o problema cand dau .acreatecar imi zice you ar not autorized to use the comand uitati scriptu-l

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

    {

        if ( PlayerInfo [ playerid ] [ pAdmin ] == 6 )

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2] [Pretul]");

    return 1;

    }

    new car;

    car = strval(tmp);

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

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2] [Pretul]");

    return 1;

    }

    new color1;

    color1 = strval(tmp);

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

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2] [Pretul]");

    return 1;

    }

    new color2;

    color2 = strval(tmp);

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

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /acreatecar [carid] [culoare1] [culoare2] [Pretul]");

    return 1;

    }

    new value;

    value = strval(tmp);

    new Float:X,Float:Y,Float:Z; GetPlayerPos(playerid, X,Y,Z);

                new thiscar = CreateVehicle(car,X,Y,Z,1,color1,color2,99999999);

                format(CarInfo[thiscar][cLicense], 32 ,"ForSale");

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

    CarInfo[thiscar][cOwned] = 0; CarInfo[thiscar][cModel] = car; CarInfo[thiscar][cColorOne] = color1; CarInfo[thiscar][cColorTwo] = color2;

    CarInfo[thiscar][cLocationx] = X; CarInfo[thiscar][cLocationy] = Y; CarInfo[thiscar][cLocationz] = Z; CarInfo[thiscar][cAngle] = 1;

    CarInfo[thiscar][cValue] = value; CarInfo[thiscar][cLock] = 0; CarInfo[thiscar][paintjob] = -1; LoadComponents(thiscar);

    PutPlayerInVehicle(playerid,thiscar,0);

    strmid(CarInfo[vehid][cOwner], "Dealership", 0, strlen("Dealership"), 999);

    format(CarInfo[thiscar][cDescription], 32, "%s",vehName[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);

    format(string, sizeof(string), " Masina %d a fost creata cu succes!.", thiscar);

    SendClientMessage(playerid, COLOR_BLUE, string);

    }

    else

    {

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

    return 1;

    }

    }[/pawn]

  3. Am si eu fs-ul carownership si daca incerc sa folosesc o comanda gen /acreatecar zice ca nu sunt autorizat si as vrea sa stiu cu ce as putea schimba functia

    [pawn]if(IsPlayerAdmin(playerid))[/pawn]

    cu una care sa i deie voie sa foloseasca comanda doar daca are admin lv 6 :)

  4. Salutare am si eu o problema vreau sa imi implementez pe server CarOwmerShip fs-ul acela imfine cititnd printre instructiunile de instalare a serverului am gasit undeva zicea sa numar masinile de pe server eu am gasit in gm aceasta linie si vreau sa stiu daca asta imi arata numarul masinilor de pe server sau nu.

    [pawn]#define CAR_AMOUNT 700[/pawn]

  5. salutare am si eu un filtrescript si e setat din el ca motoru masinii sa porneasca cand apesi NUM6 ma puteti ajuta sa il pun sa porneasca de pe tasta 2 atentie nu NUM2 tasta 2 simpla :) Eu am incercat dar nu ma descurc ... Va Multumesc

    [pawn]public OnPlayerStateChange(playerid, newstate, oldstate)

    {

    if(newstate == 2)

    {

    OnPlayerCommandText(playerid, 1114400);

    for(new var0 = 0; var0 < glob108A60; var0++)

    {

    if(strcmp(glob0[var0], function2090(playerid), true) == -1 && GetPlayerVehicleID(playerid) == glob0[var0][0])

    {

    if(IsPlayerConnected(functionF9FC(glob0[var0])))

    {

    SendClientMessage(functionF9FC(glob0[var0]), 0xFF0000FF, "Cineva a intrat in masina dvs. personala!");

    }

    }

    }

    SendClientMessage(playerid, 0x00FFFFFF, "{FFFF00}[Kill4Fun]{FFFFFF} Apasati tasta {FF0000}NUM6{FFFFFF} pentru a pornii motorul masini.");

    return 1;

    }

    return 1;

    }[/pawn]

  6. am si eu o problema poate ma poate ajuta cineva am filtrescriptul veh.amx toate bune si frumoase merge totu ok dar am o problema e setat ca sa porneasca masina pe me NUM6 si e enervant pt cei cu laptop fara tasta numerica si as vrea sa schimb tasta .. precizez ca nu am .pwm-u si daca scot filtrescriptu nu mai cere tasta de pornire dar se anuleaza multe comenzi prin gm nu mai mere /cumpara masina de la dealer dispar cateva masini .... as vrea sa stiu daca exista vreu decompiler sau daca as putea sa i fac un bypass peste tasta accea ... multumesc http://www.girlshare.ro/32397876.5

  7. Am rezolvat erorile legate de mysql dar acum sunt plin de

    [pawn]C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25088) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25088) : error 033: array must be indexed (variable "cmd")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25097) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25097) : error 033: array must be indexed (variable "x_nr")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25189) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25189) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25205) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25205) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25236) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25236) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25243) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25243) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25250) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25250) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25334) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25334) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25402) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25402) : error 033: array must be indexed (variable "x_nr")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25434) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25434) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25442) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25442) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25490) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25490) : error 033: array must be indexed (variable "tmp")

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25525) : error 017: undefined symbol "strtok"

    C:\Documents and Settings\Vlad\Desktop\pawno\v7.0.pwn(25525) : error 033: array must be indexed (variable "tmp")

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

    26 Errors.[/pawn]

    liniile sunt :

    [pawn]cmd = strtok(cmdtext, idx);[/pawn]

    [pawn]x_nr = strtok(cmdtext, idx);[/pawn]

    [pawn]tmp = strtok(cmdtext, idx);[/pawn]

    am gasit pe net cicka scriptu asta ar fi o rezolvare dar nush unde sa-l plasez

    [pawn]strtok(const string[], &index)

    {

    new length = strlen(string);

    while ((index < length) && (string[index] <= ' '))

    {

    index++;

    }

    new offset = index;

    new result[20];

    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))

    {

    result[index - offset] = string[index];

    index++;

    }

    result[index - offset] = EOS;

    return result;

    }[/pawn]

  8. #include <a_samp>

    new Gate;

    public OnFilterScriptInit()

    {

      Gate = CreateObject(968, 1540.13, -1611.08, 12.94, 0.0, 88.42,  90.00, 100.0);

      return 1;

    }

    public OnPlayerCommandText(playerid, cmdtext[])

    {

      if(!strcmp(cmdtext, "/gateopen", true)){

          if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1){

            SetTimerEx("CloseGate", 7000, false, "i", playerid);

            MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 0.0, 90.00);

            return 1;

          }

      }

      return 0;

    }

    forward CloseGate(playerid);

    public CloseGate(playerid)

    {

      MoveObject(Gate, 1540.13, -1611.08, 12.94, 3.0, 0.0, 88.42,  90.00);

    }

    ia vezi asa

  9. Salut am si eu un gamemode facut dupa bunul meu plac mi-am modificat eu prin el peacolo ce am dorit , mi-am adus factiunile din lv in ls bla bla dar am o problema ... Barierele se deschid doar cu comanda /barrier iar portile cu comanda /gate si as dorii daca ma puteti ajuta sa le fac sa se deschida cand clacsonezi... si mai am o problema vreau sa scot la icneput cand te inregistrezi intrebarea aia cu unde vrei sa te spawneze Ls sau LV vreau sa il spawneze direct ls si sa scot tutorialu ala ca e enervant cam atat daca ma puteti ajuta va rog :(

    http://www.girlshare.ro/31981041.4

  10. Darky ajutama si pe mine te rog am o mare problema si habar nam scripting deloc am un gamemode superb dar am cateva probleme la el am cateva factiuni care is in LV si le vreau in LS si nush cumsa le modific re roog mult daca ma poti ajuta

    Imi trb sa aduc in LS urmatoarele factiuni:

    Las Venturas Police Departament # Locatie: Las Venturas

    Paramedic/Fireman # Locatie: Las Venturas

    Barzini # Locatie: Las Venturas

    Tattaglia Family # Locatie: Las Venturas

    Tow Car Company # Locatie: Las Venturas

    News Reporter # Locatie: Las Venturas

    Habar nam cum naiba sa le mut + ca si scoala de soferi e in lv si jucatorii nau cum sa ajunga din ls pana acolo ca sa ia permisu te rog mult de tot ajutama :(

    http://www.girlshare.ro/31973463.5

    Si app nu se deschid barierele cand clacsonezi :|

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