Jump to content

DarkyTheAngel

Membru
  • Posts

    1.005
  • Joined

  • Last visited

    Never

Everything posted by DarkyTheAngel

  1. Multumim Vyorel.
  2. Click aici !
  3. Scuze, am gresit eu ceva la script. L-am refacut.Verifica mesajul de mai sus.
  4. /**********************************************************************************************************/ #include < a_samp > #include < zcmd > /**********************************************************************************************************/ new Menu:Neon ; /**********************************************************************************************************/ public OnFilterScriptInit() { Neon = CreateMenu("Neon system", 2, 200.0, 100.0, 150.0, 150.0); AddMenuItem(Neon, 0, "Rosu"); AddMenuItem(Neon, 0, "Verde"); AddMenuItem(Neon, 0, "Lime"); AddMenuItem(Neon, 0, "Albastru"); AddMenuItem(Neon, 0, "Alb"); AddMenuItem(Neon, 0, "Violet"); AddMenuItem(Neon, 0, "Sterge neoanele"); return 1; } /**********************************************************************************************************/ public OnVehicleDeath(vehicleid, killerid) { DestroyObject(GetPVarInt(vehicleid, "neon")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon1")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon2")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon3"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon4"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon5"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon6"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon7"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon8"));DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon9"));DeletePVar(vehicleid, "Status"); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon28")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon29")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon30")); DeletePVar(vehicleid, "Status"); DestroyObject(GetPVarInt(vehicleid, "neon31")); return 1; } /**********************************************************************************************************/ public OnPlayerExitVehicle(playerid, vehicleid) { DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9"));DeletePVar(playerid, "Status"); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon28")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon29")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon30")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon31")); return 1; } /**********************************************************************************************************/ public OnPlayerSelectedMenuRow(playerid, row) { new Menu:CurrentMenu = GetPlayerMenu(playerid); if(CurrentMenu == Neon) { switch(row) { case 0: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0)); SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 1: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 2: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon28", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon29", CreateObject(18649,0,0,0,0,0,0)); SetPVarInt(playerid, "neon30", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon31", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 3: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0)); SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 4: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0)); SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 5: { SetPVarInt(playerid, "Status", 1); SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0)); SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0); AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0); TogglePlayerControllable(playerid,1); } case 6: { DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8"));DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9"));DeletePVar(playerid, "Status"); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon28")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon29")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon30")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon31")); TogglePlayerControllable(playerid,1); } } } return 1; } /**********************************************************************************************************/ public OnPlayerExitedMenu(playerid) { TogglePlayerControllable(playerid,1); return 1; } /**********************************************************************************************************/ CMD:neon(playerid, params[]) { ShowMenuForPlayer(Neon,playerid); TogglePlayerControllable(playerid,0); return 1; } /**********************************************************************************************************/ Download .PWN: Click aici ! Download .AMX: Click aici !
  5. Noi cu ce sa te ajutam ?
  6. Poftim comanda /dveh: if(strcmp(cmd, "/dveh", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] < 4) { SendClientMessage(playerid, COLOR_WHITE, " Nu ai permisiunea sa folosesti aceasta comanda."); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dveh [carid] [color1] [color2]"); return 1; } new car; car = strval(tmp); if(car < 400 || car > 611) { SendClientMessage(playerid, COLOR_WHITE, " Vehicule: 400-611"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /veh [carid] [color1] [color2]"); return 1; } new color1; color1 = strval(tmp); if(color1 < 0 || color1 > 126) { SendClientMessage(playerid, COLOR_WHITE, " Culori: 0-126"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /dveh [carid] [color1] [color2]"); return 1; } new color2; color2 = strval(tmp); if(color2 < 0 || color2 > 126) { SendClientMessage(playerid, COLOR_GREY, " Culori: 0-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), " Vehicul-ul %d a fost generat.", carid); SendClientMessage(playerid, COLOR_WHITE, string); } return 1; } Un gangzone maker bun pentru 0.3e, este asta sau asta.
  7. Eu am warn pe acest forum (-25%) de foarte mult timp, si tot nu scade. Sunt singurul care are impresia ca warn-ul nu scade ?
  8. Descarca asta ! Pune folder-ul plugins in folder-ul cu server-ul tau. Deschide server.cfg si adauga urmatoarea linie: plugins streamer whirlpool sscanf regex audio
  9. Salut! Na'seara/Neatza.Am si eu o nelamurire in legatura cu "warn"-ul pe care un utilizator il primeste cand incalca o regula.Ce trebuie sa facem ca sa ne fie scazut warn-ul ? Multumesc.
  10. 1.Eroarea error 004: function "PlayerToPoint" is not implemented, iti arata ca functia nu este implementata.Ce ai de facut in acest caz ?: Adauga linia urmatoare in gamemod-ul tau: PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z) // by SkizzoTrick ! { new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } return 0; } 2.Avertizmentul warning 204: symbol is assigned a value that is never used: "string" iti spune ca "string" nu este folosit nici odata, asa ca poti sa stergi new string[X];. 3.Eroarea error 004: function "IsPlayerInArea" is not implemented iti spune acelasi lucru ca si la functia PlayerToPoint.Adauga urmatorul cod in gamemode: stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y) // by MadeMan { new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid, pX, pY, pZ); if(pX <= max_x && pX >= min_x && pY <= max_y && pY >= min_y) return 1; return 0; } 4.Eroarea error 004: function "ProxDetector" is not implemented ____,,____: forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5); // by XStormiest ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5) // by XStormiest { if(IsPlayerConnected(playerid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i))) { GetPlayerPos(i, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); tempposz = (oldposz -posz); if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16))) // If the player is within 16 meters { SendClientMessage(i, col1, string); } else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8))) // within 8 meters { SendClientMessage(i, col2, string); } else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4))) //4 meters { SendClientMessage(i, col3, string); } else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2))) //2 meters { SendClientMessage(i, col4, string); } else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) //1 meter { SendClientMessage(i, col5, string); } } else { SendClientMessage(i, col1, string); } } } return 1; } 5.Eroarea error 004: function "CrimInRange" is not implemented ____,,____: forward CrimInRange(Float:radi, playerid,copid); // by DarkyTheAngel ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// public CrimInRange(Float:radi, playerid,copid) // by DarkyTheAngel { if(IsPlayerConnected(playerid)&&IsPlayerConnected(copid)) { new Float:posx, Float:posy, Float:posz; new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy; GetPlayerPos(playerid, oldposx, oldposy, oldposz); GetPlayerPos(copid, posx, posy, posz); tempposx = (oldposx -posx); tempposy = (oldposy -posy); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi))) { return 1; } } return 0; } Daca nimic din ce am scris eu mai sus,nu te ajuta, probabil ai uitat vreo acolada.
  11. Adauga asta in scriptul tau: public OnPlayerExitedMenu(playerid) { TogglePlayerControllable(playerid,1); return 1; } Mai adauga la comanda /tune sau cum o ai tu, urmatoarea linie: TogglePlayerControllable(playerid,0); Succes !
  12. Click aici !
  13. Daca ai gamemode, codul trebuie pus in felul urmator: public OnGameModeInit() { // Aici pui codul obiectelor. return 1; } Daca vrei sa adaugi obiectele intr-un filterscript, pui codul la: public OnFilterScriptInit() { // Aici pui codul obiectelor. return 1; } Iti recomand sa convertesti obiectele cu asta.
  14. Gresit.Tu ai spus cum sa rezolve metoda cand primeste crash pe un server, el are alta problema ... primeste crash cand intra in GTA.
  15. DarkyTheAngel

    SSCANF

    Acesta este un avertizment intalnit la sscanf pe care poti sa il ignori. Acest avertizment va fi rezolvat atunci cand va iesi o noua versiune de YSI.
  16. Eu stiam altceva dar ... oricum. Totusi, descarca asta si baga acele plugin-uri pe server-ul tau.
  17. Incearca sa instalezi asta si asta.
  18. Chiar el a zis ca e prima lui mapa.Multi zic asta ca sa primeasca note mai mari etc. In legatura cu mapa: 4/5
  19. Acea eroare iti spune ca nu ai fisierul EG.amx in folderul gamemodes.
  20. Frumos server.Dar ai putea folosi ZCMD, ai putea incorpora acele filterscript-uri in gamemode. 4.5/5
  21. Tu mai lipseai din acest topic cu comentariul tau. :shocked:
  22. Metoda 1: 1.Intra in server.cfg. 2.Adauga linia urmatoare: password [parola] P.S: Parola se adauga fara acele paranteze. P.S: Schimba"parola" cu ce parola vrei sa adaugi pe server. Metoda 2: 1.Intra in gamemodes si deschide modul tau de joc. 2.La OnGameModeInit adauga urmatoarea linie: SendRconCommand("password PAROLA"); P.S: Schimba PAROLA cu ce parola vrei sa adaugi pe server.
  23. Incearca sa reinstalezi GTA-ul.
  24. Nu ai fisierul gtasarp.amx in folder-ul gamemodes.
  25. Posteaza aici gamemodul.
×
×
  • 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.