Jump to content

Джо

Membru
  • Posts

    1,557
  • Joined

  • Last visited

  • Days Won

    28

Community Answers

  1. Джо's post in problema factiuni was marked as the answer   
    Salut.
    Vezi MAX_STRING ce valoare are?
  2. Джо's post in Cum fac coamanda /healme was marked as the answer   
    Salut, Cedrik nu la asta se referea.
    Uite cel mai banal exemplu:
     
    new HEALME[MAX_PLAYERS]; La OnPlayerConnect pune: HEALME[playerid] = 0;//de fiecare data cand se conecteaza playerul va primi valoarea 0. Acum comanda:
    CMD:healme(playerid, params[]) { if( HEALME[ playerid ] != 0 ) return SendClientMessage( playerid, -1, "Ai luat recent heal.Asteapta 30 secunde." ); SetPlayerHealth(playerid, 100); SetTimer("reloaded", 30000, 0); HEALME[playerid] = 1; SendClientMessage(playerid, -1, "Ai luat heal.Poti folosi comanda dupa 30 de secunde."); return 1; } Si Publicul:
    forward reloaded(playerid); public reloaded(playerid) { HEALME[playerid] = 0; SendClientMessage(playerid, -1, "Acum poti folosi comanda /healme."); return 1; }  
    Cam atat.
    Aici ai un link catre script.
    https://pastebin.com/tDXWqgM7
    Poze
     
  3. Джо's post in problema comanda /bonus (help) was marked as the answer   
    CMD:bonus(playerid, params[]){ { if(playerVariables[playerid][pLevel] == 1) { playerVariables[playerid][pLevel] = 3; playerVariables[playerid][pMoney] += 1000000; SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit bonus 10kk si lvl 3 ! !"); } else { SendClientMessage(playerid, COLOR_GREEN, "{CCCCCC}[BONUS] Ai folosit deja aceasta comanda sau nu ai level 1 !"); } } return 1; } Cam asa ar veni.
    Ai pus un 0 din greseala,era 100kk.
  4. Джо's post in Problema compilare GM was marked as the answer   
    In primul rand nu faci 2 posturi findca asa vrei tu!
    In al doilea rand,vezi ca ai pus de 4 ori ShowPlayerDialog
    Vezi in postul de l-am atasat aici si zimi daca merge.
  5. Джо's post in Problema comanda /licenses was marked as the answer   
    Salut,incearca

    if(strcmp(cmd, "/licenses", true) == 0)     {         if(gLogged[playerid] == 1)         {             ShowLicenses(playerid, playerid);         }         else         {             //         }         return 1;     }   // Acesta este executabilil forward ShowLicenses(playerid, targetid); public ShowLicenses(playerid, targetid) {     new text[6][50];     new string[128], string2[128];     if(PlayerInfo[playerid][pLanguage] == 1)     {         if(PlayerInfo[targetid][pDriveLic] > 0)         {             text[0] = "Passed";         }         else         {             if(PlayerInfo[targetid][pDriveLicSusp] == 0)             {                 text[0] = "Suspended";             }             else             {                 text[0] = "Not passed";             }         }         //-         if(PlayerInfo[targetid][pFlyLic] > 0)         {             text[1] = "Passed";         }         else         {             if(PlayerInfo[targetid][pFlyLicSusp] == 0)             {                 text[1] = "Suspended";             }             else             {                 text[1] = "Not passed";             }         }         //-         if(PlayerInfo[targetid][pSailLic] > 0)         {             text[2] = "Passed";         }         else         {             if(PlayerInfo[targetid][pSailLicSusp] == 0)             {                 text[2] = "Suspended";             }             else             {                 text[2] = "Not passed";             }         }         //-         if(PlayerInfo[targetid][pFishLic] > 0)         {             text[3] = "Passed";         }         else         {             if(PlayerInfo[targetid][pFishLicSusp] == 0)             {                 text[3] = "Suspended";             }             else             {                 text[3] = "Not passed";             }         }         //-         if(PlayerInfo[targetid][pWeapLic] > 0)         {             text[4] = "Passed";         }         else         {             if(PlayerInfo[targetid][pWeapLicSusp] == 0)             {                 text[4] = "Suspended";             }             else             {                 text[4] = "Not passed";             }         }         //-         if(PlayerInfo[targetid][pMatLic] > 0)         {             text[5] = "Passed";         }         else         {             if(PlayerInfo[targetid][pMatLicSusp] == 0)             {                 text[5] = "Suspended";             }             else             {                 text[5] = "Not passed";             }         }         //-         new BigString15[250];         strcat(BigString15, "%s's licenses", GetName(playerid));         strcat(BigString15, "** Driving License: %s\n**Flying License: %s\nSailing License: %s\nFishing License: %s\nWeapons License: %s\nMaterials License: %s", text[0], text[1], text[2], text[3], text[4], text[5]);         ShowPlayerDialog(playerid, DIALOG_LICENSES, DIALOG_STYLE_MSGBOX, string, string2, "Ok", "");     }     else     {         if(PlayerInfo[targetid][pDriveLic] > 0)         {             text[0] = "Valida";         }         else         {             if(PlayerInfo[targetid][pDriveLicSusp] == 0)             {                 text[0] = "Suspendata";             }             else             {                 text[0] = "Expirata";             }         }         //-         if(PlayerInfo[targetid][pFlyLic] > 0)         {             text[1] = "Valida";         }         else         {             if(PlayerInfo[targetid][pFlyLicSusp] == 0)             {                 text[1] = "Suspendata";             }             else             {                 text[1] = "Expirata";             }         }         //-         if(PlayerInfo[targetid][pSailLic] > 0)         {             text[2] = "Valida";         }         else         {             if(PlayerInfo[targetid][pSailLicSusp] == 0)             {                 text[2] = "Suspendata";             }             else             {                 text[2] = "Expirata";             }         }         //-         if(PlayerInfo[targetid][pFishLic] > 0)         {             text[3] = "Valida";         }         else         {             if(PlayerInfo[targetid][pFishLicSusp] == 0)             {                 text[3] = "Suspendata";             }             else             {                 text[3] = "Expirata";             }         }         //-         if(PlayerInfo[targetid][pWeapLic] > 0)         {             text[4] = "Valida";         }         else         {             if(PlayerInfo[targetid][pWeapLicSusp] == 0)             {                 text[4] = "Suspendata";             }             else             {                 text[4] = "Expirata";             }         }         //-         if(PlayerInfo[targetid][pMatLic] > 0)         {             text[5] = "Valida";         }         else         {             if(PlayerInfo[targetid][pMatLicSusp] == 0)             {                 text[5] = "Suspendata";             }             else             {                 text[5] = "Expirata";             }         }         //-         new BigString15[250];         strcat(BigString15, "Licentele lui %s", GetName(playerid));         strcat(BigString15, "** Carnet de sofer: %s\n**licenta de pilot: %s\nLicenta de navigatie: %s\nLicenta de pescar: %s\nPermis de port-arma: %s\nLicenta de materiale: %s", text[0], text[1], text[2], text[3], text[4], text[5]);         ShowPlayerDialog(playerid, DIALOG_LICENSES, DIALOG_STYLE_MSGBOX, string, string2, "Ok", "");     }     return 1; }  
  6. Джо's post in Problema comanda /ridicapayday was marked as the answer   
    Ia incearca.
    http://adf.ly/14HxE0
  7. Джо's post in Problema comanda /stats was marked as the answer   
    Mareste mainstring cu cate 50 si vezi daca da rezultate.
  8. Джо's post in Cerere tutorial creare admini was marked as the answer   
    Salutare.In continuare o sa iti prezint cum sa faci un sistem de admin simplu.
    Mergi la
    enum pInfo sau daca ai enum pData Adaugi asta la OnPlayerConnect
    PlayerInfo[playerid][pAdmin] = 0; Acum iti voi da comanda /makeadmin.

    if(strcmp(cmd, "/makeadmin", true) == 0) { new string[128]; new tmp[256]; new player[MAX_PLAYER_NAME], giveplayer[MAX_PLAYER_NAME]; new giveplayerid; if (IsPlayerAdmin(playerid))//Verifica daca playerul este logat la RCON. { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, ORANGE, "Folosire: /makeadmin [playerid] [level]"); SendClientMessage(playerid, ORANGE, "Functie:Da unui player admin."); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); new level = strval(tmp); if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, player, sizeof(player)); PlayerInfo[giveplayerid][AdminLevel] = level; printf("Admin %s >> %s admin level %d.", player, giveplayer, level); format(string, sizeof(string), "Ai primit admin level %d de la %s.", level, player); SendClientMessage(giveplayerid, 0x00C2ECFF, string); format(string, sizeof(string), "I-ai dat lui %s admin level %d.", giveplayer,PlayerInfo[giveplayerid][pAdmin]); SendClientMessage(playerid, 0x00C2ECFF, string); } else if(giveplayerid == INVALID_PLAYER_ID) { format(string, sizeof(string), "%i nu este activ", giveplayerid); SendClientMessage(playerid, 0xE60000FF, string); } } else { SendClientMessage(playerid, 0xE60000FF, "Nu esti logat la RCON"); } return 1; }
  9. Джо's post in Problema pornire server was marked as the answer   
    Ai doua posibilitati:
     
    I.Recompilezi Gamemode-ul tau,dupa care incerci din nou sa pornesti serverul.
    II.Updatezi toate pluginurile urmand sa pornesti din nou serverul.
    III.Descarci nativechecker.dll urmand sa il introduci in serverul tau>>plugins,urmand sa scri si in server.cfg nativechecker.
    Dupa pornesti serverul si vezi ce erori iti da,postezi aici erorile.
     
    Nativechecker poti downloada de aici.
    http://forum.sa-mp.com/showthread.php?t=249226
  10. Джо's post in Intrebare ! was marked as the answer   
    Daca scoti a doua parte asta inseamna ca nu mai sunt masinile alea pentru joburi,dar ele exista.Cauta in gm Curier8 Curier9 Curier10 si Curier11 si cand dai de AddStaticVehicle/AddStatitcVehicleEx, sau de CreateVehicle le stergi,dar doar pe alea din partea a 2a.
    Exemplu:
    curier8 = CreateVehicle(masina,coordonate etc...);
    Sau
    curier8 = AddStaticVehicle(masina,coordonate);
  11. Джо's post in Problema din nou slot masina was marked as the answer   
    else if(strcmp(x_nr,"buy",true) == 0)         {             new car = 1;             new model = GetVehicleModel(idcar);             if(IsASalesVehicle(idcar))             {                 if(PlayerInfo[playerid][pLevel] < 2)           {                     SendClientMessage(playerid, COLOR_GREY, "You need to be level 2 to buy a vehicle!");                     return 1;           }           if(PlayerInfo[playerid][pPcarkey] == 9999 || PlayerInfo[playerid][pPcarkey3] == 9999 || PlayerInfo[playerid][pPcarkey2] == 9999 || PlayerInfo[playerid][pPcarkey4] == 9999)             {              if(GetPlayerMoney(playerid) >= GetVehiclePrice(idcar))             {               if(PlayerInfo[playerid][pCarLic] == 1)               {                 for(new h = 1; h < sizeof(CarInfo); h++)                 {                   if(CarInfo[h][cOwned] == 0)                   {                     car = h;                     h = 9999;                   }                 }                 format(string, sizeof(string),"LARP/Vehicles/%d.ini",car)                 dini_Create(string);                 if(PlayerInfo[playerid][pPcarkey] == 9999)                 {                 PlayerInfo[playerid][pPcarkey] = car;                 }                 else if(PlayerInfo[playerid][pPcarkey2] == 9999)                 {                 PlayerInfo[playerid][pPcarkey2] = car;                 }                 else if( PlayerInfo[ playerid ][ pPcarkey3 ] == 9999 )                 {                   if(PlayerInfo[playerid][pVip] >= 1)// Daca aici are variabila cu >= 1 inseamna ca daca are vip 1 sau mai mult poate cumpara masina de pe slotul 3 ceea ce te scuteste de munca.                   {                     PlayerInfo[playerid][pPcarkey3] = car;                   }                   else if(PlayerInfo[playerid][pVip] == 0)                   {                     SendClientMessage(playerid,-1, "Trebuie sa fii VIP pentru a folosi al 3-lea slot!" );                     return 1;                     }                 }                 else if(PlayerInfo[playerid][pPcarkey3] == 9999)                 {                 PlayerInfo[playerid][pPcarkey3] = car;                 }                 else if( PlayerInfo[ playerid ][ pPcarkey4 ] == 9999 )                 {                   if(PlayerInfo[playerid][pVip] == 2)                   {                     PlayerInfo[playerid][pPcarkey4] = car;                   }                   else if(PlayerInfo[playerid][pVip] == 0)                   {                     SendClientMessage(playerid,-1, "Trebuie sa fii VIP level2 pentru a folosi al 4-lea slot!" );                     return 1;                     }                 }                 else if(PlayerInfo[playerid][pPcarkey4] == 9999)                 {                 PlayerInfo[playerid][pPcarkey4] = car;                 }                 CarInfo[car][cOwned] = 1;                 strmid(CarInfo[car][cOwner], sendername, 0, strlen(sendername), 999);                 SafeGivePlayerMoney(playerid,-GetVehiclePrice(idcar));                 if(IsModelAPlane(idcar) || IsModelAHeli(idcar))                 {                   CarInfo[car][cLocationx] = 93.3057;                   CarInfo[car][cLocationy] = 2502.0701;                   CarInfo[car][cLocationz] = 16.4007;                   CarInfo[car][cAngle] = 208.7506;                   SendClientMessage(playerid, COLOR_YELLOW2, "Your Aircraft has been deliveried to Las Venturas Airport, you can get it there!");                   SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");                   SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");                                 SetPlayerCheckpoint(playerid, 93.3057,2502.0701,16.4007, 3.0);                   GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~Las Venturas Airport!", 5000, 3);                 }                 else if(IsModelABoat(idcar))                 {                   CarInfo[car][cLocationx] = 225.8744;                   CarInfo[car][cLocationy] = -1912.4093;                   CarInfo[car][cLocationz] = 1.0907;                   CarInfo[car][cAngle] = 208.7506;                   SendClientMessage(playerid, COLOR_YELLOW2, "Your Boat has been deliveried to San Fierro Docks, you can get it there!");                   SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");                   SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");                   SetPlayerCheckpoint(playerid, 225.8744, -1912.4093, 1.0907, 3.0);                   GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~San Fierro Docks!", 5000, 3);                 }                 else                 {                                 CarInfo[car][cLocationx] = -1589.2644;                   CarInfo[car][cLocationy] = 106.9119;                   CarInfo[car][cLocationz] = 3.5495;                   CarInfo[car][cAngle] = 317.1649;                   SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle has been deliveried to San Fierro Docks, you can get it there!");                   SendClientMessage(playerid, COLOR_YELLOW2, "Your vehicle is unlocked so you can pay someone to deliver it to your new spawn point!");                   SendClientMessage(playerid, COLOR_NICERED, "REMEMBER: Leaving your car in the deliver point can get your car SOLD by an administration without refund!");                                 SetPlayerCheckpoint(playerid, -1589.2644,106.91193,3.5495, 3.0);                   GameTextForPlayer(playerid, "~p~Congratulations~n~~w~Don't forget to pickup your car at the ~b~San Fierro Docks!", 5000, 3);                 }                 CarInfo[car][cModel] = model;                 CarInfo[car][cGas] = 0;                 CarInfo[car][cparcare] = 0;                 CarInfo[car][cinparcare] = 0;                    VehicleKM[car] = 0;                 CarInfo[car][cVirWorld] = 0;                 CarInfo[car][cPaintjob] = 999;                 CarInfo[car][cColorOne] = 1;                 CarInfo[car][cColorTwo] = 1;                 CarInfo[car][cComponent0] = 0;                 CarInfo[car][cComponent1] = 0;                 CarInfo[car][cComponent2] = 0;                 CarInfo[car][cComponent3] = 0;                 CarInfo[car][cComponent4] = 0;                 CarInfo[car][cComponent5] = 0;                 CarInfo[car][cComponent6] = 0;                 CarInfo[car][cComponent7] = 0;                 CarInfo[car][cComponent8] = 0;                 CarInfo[car][cComponent9] = 0;                 CarInfo[car][cComponent10] = 0;                 CarInfo[car][cComponent11] = 0;                 CarInfo[car][cComponent12] = 0;                 CarInfo[car][cComponent13] = 0;                 DestroyVehicle(car);                 ownedcar[car] = CreateVehicle(CarInfo[car][cModel],CarInfo[car][cLocationx],CarInfo[car][cLocationy],CarInfo[car][cLocationz],90.0,1,1,30000);                 PlayerPlayMusic(playerid);                 SendClientMessage(playerid, COLOR_GRAD2, "Congratulations on your new purchase!");                 SendClientMessage(playerid, COLOR_GRAD2, "Type /vehiclehelp to view the vehicle manual!");                 gEngine[playerid] = 0;                 engineOn[GetPlayerVehicleID(playerid)] = false;                 SendClientMessage(playerid, COLOR_GREY, "Remember to set the new Security Code of the Car!");                 new pass[24];                 format(pass, sizeof(pass),"%d%d%d",random(9),random(9),random(9));                 CarInfo[car][cCode] = strval(pass);                 OnPropUpdate(4,car);                 OnPlayerUpdateEx(playerid);               }               else               {                 SendClientMessage(playerid, COLOR_WHITE, "* For security reasons, a Driving License is needed to buy a car!");                 return 1;               }             }             else             {               SendClientMessage(playerid, COLOR_GREY, "You don't have enough cash with you ! ");               return 1;             }           }           else if(PlayerInfo[playerid][pPcarkey] != 9999 && PlayerInfo[playerid][pPcarkey3] != 9999 && PlayerInfo[playerid][pPcarkey2] != 9999)           {             SendClientMessage(playerid, COLOR_GREY, "Nu ai sloturi! ");             return 1;           }             }         }
  12. Джо's post in problema /gethere was marked as the answer   
    if(strcmp(cmd, "/gethere", true) == 0)   {     if(IsPlayerConnected(playerid))     {       tmp = strtok(cmdtext, idx);       if(!strlen(tmp))       {         SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /gethere [playerid/PartOfName]");         return 1;       }       new Float:plocx,Float:plocy,Float:plocz;       new plo;       plo = ReturnUser(tmp);       if (IsPlayerConnected(plo))       {         if(plo != INVALID_PLAYER_ID)         {                if(PlayerInfo[plo][pJailed] == 1)                {                 SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player nu sia terminat inca sentinta (/jl) !");                 return 1;             }              if(WantedLevel[plo] >= 1)              {               SendClientMessage(playerid,COLOR_GREY,"[Server]: Acest player are wanted,este posibil sa fie urmarit de politie !");               return 1;              }             if(PlayerInfo[plo][pAdmin] > PlayerInfo[playerid][pAdmin])             {               SendClientMessage(playerid, COLOR_GRAD1,"[Server]: Nu poti teleporta admini mai mari in grad ca tine !");               return 1;             }             GetPlayerPos(playerid, plocx, plocy, plocz);             if(GetPlayerInterior(playerid) > 0)             {               SetPlayerInterior(plo,GetPlayerInterior(playerid));               PlayerInfo[plo][pInt] = GetPlayerInterior(playerid);               PlayerInfo[plo][pVirWorld] = GetPlayerVirtualWorld(playerid);               SetPlayerVirtualWorld(plo,GetPlayerVirtualWorld(playerid));             }             if(GetPlayerInterior(playerid) == 0)             {               SetPlayerInterior(plo,0);               PlayerInfo[plo][pVirWorld] = 0;               SetPlayerVirtualWorld(plo,0);             }             if(plocz > 930.0 && GetPlayerInterior(playerid) == 0) //the highest land point in sa = 526.8             {               SetPlayerInterior(plo,1);               PlayerInfo[plo][pInt] = 1;               PlayerInfo[plo][pVirWorld] = 1;               SetPlayerVirtualWorld(plo,1);             }             if (GetPlayerState(plo) == 2)             {               TelePos[plo][0] = 0.0;               TelePos[plo][1] = 0.0;               new tmpcar = GetPlayerVehicleID(plo);               SetVehiclePos(tmpcar, plocx, plocy+4, plocz);             }             else             {               SetPlayerPos(plo,plocx,plocy+2, plocz);             }             GetPlayerName(playerid, sendername, sizeof(sendername));             GetPlayerName(plo, playername, sizeof(playername));             format(string, 256, "** Admin %s tea teleportat la el.", sendername);               SendClientMessage(plo, COLOR__CYAN, string);             new arank[64];             if(PlayerInfo[playerid][pAdmin] >= 1) { arank = "Admin"; }             else if(PlayerInfo[playerid][pHelper] >= 1) { arank = "HELPER"; }             else { arank = "Virus"; }             format(string, sizeof(string), "[%s]: %s la teleportat la el pe %s.", arank,sendername,playername);             SendHelperMessage(COLOR_YELLOW, string);             new y, m, d;             new h,mi,s;             getdate(y,m,d);             gettime(h,mi,s);             format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s la teleportat la el pe %s.",d,m,y,h,mi,s,sendername,playername);             AdminActivity(string);           }           else           {             SendClientMessage(playerid, COLOR_GRAD1, "[Server]: Tu nu esti autorizat sa foloesti aceasta comanda!");           }         }       }       else       {         format(string, sizeof(string), "[Server]: %d is not an active player.", plo);         SendClientMessage(playerid, COLOR_GRAD1, string);       }     }     return 1; }
  13. Джо's post in Tutorial comanda /ban was marked as the answer   
    Are gmul 4 games o astfel de comanda de ban pe timp( pe zile).
  14. Джо's post in Problema masini TowTruck was marked as the answer   
    NFScar = AddStaticVehicleEx(525,1658.80004883,-1693.90002441,20.29999924,90.00000000,19,19,0); //Tow Truck NFScar1 = AddStaticVehicleEx(525,1673.90002441,-1706.69995117,20.20000076,0.00000000,19,19,0); //Tow Truck NFScar2 = AddStaticVehicleEx(525,1644.40002441,-1701.19995117,20.20000076,180.00000000,19,19,0); //Tow Truck NFScar3 = AddStaticVehicleEx(525,1659.30004883,-1721.69995117,20.20000076,270.00000000,19,19,0); //Tow Truck NFScar4 = AddStaticVehicle(525,1672.2181,-1720.3198,20.2977,51.2457,19,19); // Tow Truck NFScar5 = AddStaticVehicle(525,1672.3656,-1694.8906,20.3175,138.5390,19,19); // Tow Truck Ok fi atent iti voi face un scurt tutorial cum poti schimba o masina cum ai tu.ca sa nu mai gresesti.
    Primul pas:
    Te uiti aici
    http://wiki.sa-mp.com/wiki/Vehicle_Model_ID_List
    Si vezi id-ul masinii exemplu pentru Landstalker ai id-ul 400.
    Ok,mergem in gm si ne uitam la ce ne-ai dat tu.
    NFScar5 = AddStaticVehicle(525,1672.3656,-1694.8906,20.3175,138.5390,19,19); // Tow Truck
     
    Ok ce ne intereseaza pe noi:
    Cele cu culoarea mov nu ne intereseaza sunt doar coordonate...
    ID-ul acela care este cu culoarea rosie (525) este id-ul tow truck-ului,iar daca vrei sa pui alta masina in locul acesteia modifici de acolo in loc de  525 pui 400 401 etc...Sau ce masina vrei.
    PS: Ti-am facut eu masinile probeaza si revino cu un raspuns te rog.
  15. Джо's post in Upload- stream link was marked as the answer   
    Nu e neaparat nevoie,fi atent updateaza audio plugins,s-ar putea sa fie de acolo.
    Si link-ul este bun mie imi merge :|
  16. Джо's post in Camera was marked as the answer   
    Poftim,uite aici
    http://wiki.sa-mp.com/wiki/SetPlayerCameraPos
    Aici ar trebui sa intelegi
    http://wiki.sa-mp.com/wiki/SetPlayerCameraLookAt
  17. Джо's post in Sprijin Locked/unlocked was marked as the answer   
    Incearca:
    CMD:lock(playerid, params[]) { if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first."); if(IsPlayerConnected(playerid)) { new engine,lights,alarm,doors,bonnet,boot,objective;  if(SwitchKey[playerid] == 1) { new string[100]; if(personalcar[playerid] != 0) {  if(CheckPlayerDistanceToVehicle(5.0, playerid, personalcar[playerid])) { if(CarInfo[OwnedVeh(personalcar[playerid])][cLock] == 1) { format(string,sizeof(string),"~y~UNLOCKED"); TextDrawSetString(Vehstatus2, string); TextDrawShowForPlayer(i, Vehstatus2); CarInfo[OwnedVeh(personalcar[playerid])][cLock] = 0; gCarLock[personalcar[playerid]] = 0; vUpdate(OwnedVeh(personalcar[playerid]), cLockx); // return 1; } else if(CarInfo[OwnedVeh(personalcar[playerid])][cLock] == 0) { format(string,sizeof(string),"~r~LOCKED"); TextDrawSetString(Vehstatus2, string); TextDrawShowForPlayer(i, Vehstatus2); CarInfo[OwnedVeh(personalcar[playerid])][cLock] = 1; gCarLock[personalcar[playerid]] = 1; vUpdate(OwnedVeh(personalcar[playerid]), cLockx); //  return 1; } } else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Your vehicle not near you."); }  else return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}You don't have a vehicle."); } else if(SwitchKey[playerid] == 2) {  new carid,string[128]; if(HireCar[playerid] == -1) return SCM(playerid,COLOR_WHITE,"{FFB870}You do not have a rental car/boat/bike/scooter already.");  if(HireCar[playerid] != -1)  { carid = HireCar[playerid]; } if(CheckPlayerDistanceToVehicle(5.0, playerid, HireCar[playerid])) {  //if(gCarLock[personalcar[playerid]] == 0) { format(string,sizeof(string),"~y~UNLOCKED"); TextDrawSetString(Vehstatus2, string); TextDrawShowForPlayer(i, Vehstatus2); } else if(gCarLock[personalcar[playerid]] == 1) { format(string,sizeof(string),"~r~LOCKED"); TextDrawSetString(Vehstatus2, string); TextDrawShowForPlayer(i, Vehstatus2); } } } } return 1; }
  18. Джо's post in Sprijin Textdraw was marked as the answer   
    Ok.
    Poza I:

    Code:
    reportstext = TextDrawCreate(428.000091, 7.466656, "Reports:"); TextDrawLetterSize(reportstext, 0.366000, 1.301333); TextDrawAlignment(reportstext, 1); TextDrawColor(Textdraw0, 41215); TextDrawSetShadow(Textdraw0, 0); TextDrawSetOutline(Textdraw0, 1); TextDrawBackgroundColor(Textdraw0, 51); TextDrawFont(Textdraw0, 1); TextDrawSetProportional(Textdraw0, 1); helpstext = TextDrawCreate(483.199981, 5.226665, " "); TextDrawLetterSize(reportstext, 0.333999, 1.637333); TextDrawSetShadow(reportstext, 1); TextDrawSetShadow(reportstext, 1); TextDrawSetOutline(reportstext, 1); TextDrawFont(reportstext, 1); helpstext = TextDrawCreate(439.200012, 385.279937, "Helps:"); TextDrawLetterSize(helpstext, 0.361999, 1.786666); TextDrawTextSize(helpstext, -23.999992, 0.000000); TextDrawColor(helpstext, -16776961); TextDrawSetShadow(helpstext, 1); TextDrawSetOutline(helpstext, 1); TextDrawFont(helpstext, 1); helpstext= TextDrawCreate(479.200012, 389.013427, " "); TextDrawLetterSize(helpstext, 0.425999, 1.525333); TextDrawColor(helpstext, -16776961); TextDrawSetShadow(helpstext, 1); TextDrawSetOutline(helpstext, 1); TextDrawFont(reportstext, 1); Poza II:
    Code:
    reportstext = TextDrawCreate(503.200012, 104.533317, "Reports:"); TextDrawLetterSize(reportstext, 0.369999, 1.637333); TextDrawColor(reportstext, -16776961); TextDrawSetShadow(reportstext, 1); TextDrawSetOutline(reportstext, 1); TextDrawFont(reportstext, 1); helpstext = TextDrawCreate(504.000000, 123.199996, "Helps:"); TextDrawLetterSize(helpstext, 0.373999, 1.488000); TextDrawColor(helpstext, -16776961); TextDrawSetShadow(helpstext, 1); TextDrawSetOutline(helpstext, 1); TextDrawFont(helpstext, 1); reportstext = TextDrawCreate(610.000000, 102.299995, "usebox"); TextDrawLetterSize(reportstext, 0.000000, 5.241853); TextDrawTextSize(reportstext, 494.000000, 0.000000); TextDrawColor(reportstext, -16776961); TextDrawSetShadow(reportstext, 1); TextDrawSetOutline(reportstext, 1); TextDrawFont(reportstext, 1); reportstext = TextDrawCreate(557.600036, 106.026679, " "); TextDrawLetterSize(reportstext, 0.409999, 1.338666); TextDrawColor(reportstext, -16776961); TextDrawSetShadow(reportstext, 1); TextDrawSetOutline(reportstext, 1); TextDrawFont(reportstext, 1); helpstext = TextDrawCreate(547.200012, 123.946685, " "); TextDrawLetterSize(helpstext, 0.449999, 1.600000); TextDrawColor(helpstext, -16776961); TextDrawSetShadow(helpstext, 1); TextDrawSetOutline(helpstext, 1); TextDrawFont(helpstext, 1); PS: Literele in plus au fost ghid pentru mine.Ele nu vor aparea cand vor aparea si textdraw-ul.
  19. Джо's post in Gm Blown was marked as the answer   
    Pai acum mult timp si eu vroiam sa adaug npc-uri pe serverul meu si nu stiam cum,dar nu am cerut ajutorul,m-am inspirat cu ajutorul lui google.In fine uite.
    Bus1 si Bus2 sunt npc-urile in bus,scripterul care le-a creat npc-urile nu lea pus si ruta pe care sa mearga.
    I.Vezi ca in filterscripts ai npc_record
    II.Pune fsul acela ca denumire in server.cfg.
    III.Porneste serverul.
    IV.Intra pe server si logheazate la rcon.
    V.Urcate intr-un bus si scrie /ofrecord [nume]
    VI.Dupa ce ai terminat de condus pe ruta pe care vrei sa o faci,scrie /stoprecord.
    VII.Intra in scriptfilles>>nume.rec*unde nume reprezinta numele ales de tine daca ai dat /ofrecord samp o sa iti apara samp.rec*.Intra in el.
    VIII.Intra intrun fisier gol pawno adica sa aiba un singur rand si creezi:
    #define RECORDING "mynpc" // Numele la inregistrarea facut de noi ingame si bagata in npcmodes/recording. #define RECORDING_TYPE 1 //1 = cu masina 2 = terestru #include <a_npc> main(){} public OnRecordingPlaybackEnd() StartRecordingPlayback(RECORDING_TYPE, RECORDING); #if RECORDING_TYPE == 1     public OnNPCEnterVehicle(vehicleid, seatid) StartRecordingPlayback(RECORDING_TYPE, RECORDING);     public OnNPCExitVehicle() StopRecordingPlayback(); #else     public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING); #endif Ok,completezi tu acolo cu numele pe care l-ai scris etc...
    Acuma trecem pe partea de gamemodes.
    IX. Intrii in gamemodes si defineste:
    new BUS1; sau cum vrei tu sa o definesti.
    X.Apoi la OnGameModeInit vom creea:
    BUS1 = CreateVehicle(411, 0.0, 0.0, 0.0, 0.0, -1, -1, 1000);// Atentie tu pui aici unde scrie 411 pui idul busului+coordonatele de unde sa inceapa XI.Tot la OnGameModeInit adaugam urmatoarea:
    ConnectNPC("nume-npc", "nume-inregistrare");// La nume-npc scri ce vrei dar la nume-inregistrare scri exact ca atunci cand ai dat /ofrecord. XII. Si in sfarsit la OnPlayerSpawn pui:
    if(IsPlayerNPC(playerid)) /     {         new npcname[MAX_PLAYER_NAME];         GetPlayerName(playerid, npcname, sizeof(npcname));         if(!strcmp(npcname, "NUME", true)) // Nume = Numele NPC-ului.         {             PutPlayerInVehicle(playerid, NPCvehicle, 0); //Punem NPCul in vehicul         }         return 1;     } XII.Asta cred ca venea primul pas dar na,mi-am adus aminte acuma!
    ATENTIE!Inainte de toate scoate npc-urile BUS1 & BUS2 din gm/fs pentru a rula corect.
  20. Джо's post in Cum Creez Comanda /surrender was marked as the answer   
    Ok,daca spui ca nici macar nu ai incercat noi de ce ar trebui sa te ajutam?Asta inseamna sa iti dam mura in gura.Incearca sa faci comanda,sau macar un inceput de comanda si o sa te ajutam noi in continuare.
  21. Джо's post in Radio Link was marked as the answer   
    Atunci pune asa.

    PlayAudioStreamForPlayer(playerid, "www.radiozu.ro/live.m3u"); SendClientMessage(playerid, culoare, "Asculti Radio ZU!");
  22. Джо's post in Masini Factiuni Ajutor! was marked as the answer   
    Nu.Aceasta este deja o alta problema.Cauta pe forumuri si vei gasi.
    Te rog sa postezi acest topic ca si rezolvat.
  23. Джо's post in Spawn La Factiune was marked as the answer   
    Pai aratane ce ai incercat sa faci...
  24. Джо's post in Comanda /lights was marked as the answer   
    Poti face in felul urmator:
    Intrii pe server dai /lights si dupa /tod 0 ( ca sa se faca intuneric) si vezi daca functioneaza,nu are cum sa nu functioneze si ziua.
  25. Джо's post in Problema /dm Rspawn was marked as the answer   
    Ahh!
    Am uitat.Ai cumva InDM[playerid] = 0; la onplayerconnect?
    Daca nu pune dupa {
    InDM[playerid] = 0;
×
×
  • 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.