Jump to content

mihai97

Membru
  • Posts

    22
  • Joined

  • Last visited

    Never

mihai97's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Multumesc si astept si propuneri pt v2:)
  2. Pai nustu exact ce mi'a venit dar e mai accesibil pt playeri... )
  3. Salutare si bine v'am regasit! Am creat un script(Primul meu script de cand m'am reapucat de sa-mp :cheesy:) pentru impatimitii curselor si nu numai! [glow=red,2,300][shadow=red,left]Descriere[/shadow][/glow]: Acest script va permite sa va intreceti cu prietenii dar is cu dusmanii.Am creat momentan doar 3 circuite, unul de DRAG, unul de DRIFT si unul ceva mai greu dar tot de drift :grin: . [glow=red,2,300][shadow=red,left]Credite[/shadow][/glow]: Scriptul este facut de mine, sa nu aud ca este copiat sau alte chestii! Ii multumesc lui stuntman, daca nu m'ar fi lasat sa il bat la toate cursele nu as fi putut testa scriptul ) . [glow=red,2,300][shadow=red,left]comenzi[/shadow][/glow]: /race [playerid /provoaca [playerid] /cursa [playerid] Toate fac acelasi lucru, afiseaza un meniu pentru a selecta pe cat doriti sa pariati si pe ce circuit se va desfasura intrecerea. [glow=red,2,300][shadow=red,left]DOWNLOAD[/shadow][/glow]: AICI Astept pareri si sugestii pt v2 .
  4. pai incearca sa pui in loc de cmd cmdtext peste tot.
  5. Sau daca nu e de la comanda incearca sa schimbi numele la un meniu.
  6. mihai97

    cerinta

    //Anims By FLake. #include <a_samp> #define SPECIAL_ACTION_PISSING 68 #define COLOR_BLUE 0x33AAFFFF #define COLOR_YELLOW 0xFFFF00AA #define dialog_anims 1 public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Anims Loading "); print(" "); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { print("\n----------------------------------"); print(" Anims Unloading "); print(" "); print("----------------------------------\n"); return 1; } public OnPlayerConnect(playerid) { SendClientMessage(playerid, COLOR_YELLOW,"Loaded: Flakes Anim System! use /anims"); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/anims", cmdtext, true, 10) == 0) { ShowPlayerDialog(playerid, dialog_anims, DIALOG_STYLE_LIST, "Animatii", "relax/nhandsup", "Playe anim", "Close"); return 1; } return 0; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid == dialog_anims) { if(response) { if(listitem == 0) { if (GetPlayerState(playerid)== 1) { ApplyAnimation(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0); } } if(listitem == 1) { if (GetPlayerState(playerid)== 1) { SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP); } } } else { SendClientMessage(playerid, COLOR_YELLOW, "Write /anims for show again the anims menu."); } } return 1; } Am facut dialogul cu 2 animatii.Daca vrei sa mai adaugi te duci la linia ShowPlayerDialog(playerid, dialog_anims, DIALOG_STYLE_LIST, "Animatii", "relax/nhandsup", "Playe anim", "Close"); si adaugi la relax/nhandsup /n si dupaia pui ce sa apara in lista de exemplu: relax/nhandsup/nbomb etc. si la public OnDialogResponse pui sub if(listitem == 1) pui if(listitem == 2) { //cod } si tot asa pt fiecare rand.
  7. Cred ca ai mai pus odata OnGameModeInit.Nu trebuie pus decat o data sau daca e FS trebuie sa pui OnFilterScriptInit
  8. ma io nu zic la comenzi ca nu e legat de comenzi acolo.Io zic de asta: public OnPlayerEnterCheckpoint(playerid) { if(IsTrailerAttachedToVehicle(403)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else if(IsTrailerAttachedToVehicle(515)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else if(IsTrailerAttachedToVehicle(514)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else { SendClientMessage(playerid, COLOR_YELLOW, "You Must get a Truck and necessary Trailer to finish the mission!"); } return 0; }
  9. mai ai tu textdrawri care arata pe sv cand un player se conecteaza/deconecteaza.
  10. A da scz ma grabisem cand am scris ca trebuia sa plec.Sterge return 1 alea si pune in loc de if alea pune else if deoarece o sa iti zica ca nu ai ala atasat decat daca nu are ulimu trailer dala si la restu o sa iti faca ce ai scris acolo adr o sa ii si zica ca nu are atasat trailerul. in final codul e : //----Includes---- #include <a_samp> #include <a_players> #include <a_vehicles> //----End Includes---- //----Defines1---- #define COLOR_YELLOW 0xFFFF00AA #define COLOR_GREEN 0x33AA33AA //----End Defines---- public OnFilterScriptInit() { //----echo---- print("\n--------------------------------------"); print(" Truck Mod V1 by Ro_Perpentual"); print("--------------------------------------\n"); //----echo---- //----Map here---- CreateObject(3268, 1764.8146972656, 134.63073730469, 31.591743469238, 357, 0, 64); CreateObject(7238, 1769.18359375, 170.7783203125, 43.025672912598, 0, 2.999267578125, 159.99938964844); CreateObject(3259, 1800.1630859375, 134.51438903809, 33.044380187988, 0, 0, 340); CreateObject(3259, 1812.6193847656, 160.24678039551, 32.405586242676, 0, 0, 339.99938964844); CreateObject(3258, 1807.3881835938, 147.08117675781, 33.713649749756, 0, 0, 0); CreateObject(7317, 1788.5966796875, 122.3740234375, 38, 0, 0, 243.99536132813); CreateObject(3268, 1736.146484375, 148.6015625, 29.652599334717, 356.99523925781, 0, 63.995361328125); CreateObject(7102, 1818.7679443359, 128.4599609375, 35, 0, 0, 154); CreateObject(17020, 1703.1654052734, 146.91101074219, 33.305732727051, 0, 5, 68); CreateObject(10773, 1726.8638916016, 201.35404968262, 25.395853042603, 0, 350, 246); CreateObject(4100, 1732.4005126953, 125.94302368164, 32.599998474121, 0, 0, 296); CreateObject(4100, 1719.88671875, 131.5654296875, 32.532371520996, 0, 0, 295.99914550781); CreateObject(4100, 1765.5903320313, 113.1117401123, 34.220817565918, 0, 0, 303.99914550781); CreateObject(16337, 1756.7677001953, 114.47843933105, 32.799999237061, 0, 0, 68); CreateObject(16337, 1739.3115234375, 121.7255859375, 31.672515869141, 0, 0, 67.999877929688); //----End Map---- //----Spawn Trailers---- AddStaticVehicle (450, 1728.3317871094, 148.45733642578, 29.233751296997, 150, 3, 3); AddStaticVehicle (450, 1732.2622070313, 146.38159179688, 29.547168731689, 150, 3, 3); AddStaticVehicle (450, 1736.3986816406, 143.9832611084, 29.887237548828, 150, 3, 3); AddStaticVehicle (450, 1740.13671875, 141.59121704102, 30.205297470093, 150, 3, 3); AddStaticVehicle (450, 1757.6580810547, 135.89128112793, 31.224514007568, 150, 3, 3); AddStaticVehicle (450, 1762.0718994141, 134.2492980957, 31.4713363647, 150, 3, 3); AddStaticVehicle (450, 1766.1295166016, 132.1644744873, 31.72106552124, 150, 3, 3); AddStaticVehicle (450, 1770.2490234375, 129.78094482422, 31.981822967529, 150, 3, 3); //----End Spawn Trailers---- return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/truck", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1729.9500732422, 111.06327819824, 32); SendClientMessage(playerid, COLOR_YELLOW, "Now you are trucker"); SendClientMessage(playerid, COLOR_YELLOW, "Get a truck using '/car [Truck Name]' , pick a trailer and go to the red marker."); SendClientMessage(playerid, COLOR_YELLOW, "Available truck for this mission: Linerunner, Roadtrain, Tanker."); SendClientMessage(playerid, COLOR_YELLOW, "To paint your truck to company's color, type '/paint_truck'!"); SendClientMessage(playerid, COLOR_YELLOW, "If you want to stop the mission, type '/stop_truck'!"); SendClientMessage(playerid, COLOR_YELLOW, "For commands type /help_truck"); SetPlayerCheckpoint(playerid, 585.16296386719, 855.3798828125, -43.273166656494, 5); } if (strcmp("/paint_truck", cmdtext, true, 10) == 0) { new vehicle = GetPlayerVehicleID(playerid); ChangeVehicleColor(vehicle, 0, 3); } if (strcmp("/stop_truck", cmdtext, true, 10) == 0) { DisablePlayerCheckpoint(playerid); } if (strcmp("/help_truck", cmdtext, true, 10) == 0) { SendClientMessage(playerid, COLOR_GREEN, "----------Truck Help----------"); SendClientMessage(playerid, COLOR_YELLOW, "'/car [Truck Name]' for spawn a truck. Trucks: Linerunner, Roadtrain, Tanker"); SendClientMessage(playerid, COLOR_YELLOW, "'/truck' for start truck mission, '/paint_truck' for paint truck, '/stop_truck' to stop truck mission"); } return 1; } public OnPlayerEnterCheckpoint(playerid) { if(IsTrailerAttachedToVehicle(403)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else if(IsTrailerAttachedToVehicle(515)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else if(IsTrailerAttachedToVehicle(514)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); } else { SendClientMessage(playerid, COLOR_YELLOW, "You Must get a Truck and necessary Trailer to finish the mission!"); } return 0; } public OnPlayerLeaveCheckpoint(playerid) { DisablePlayerCheckpoint(playerid); return 1; }
  11. Pai cred ca ai cam facut o greseala. Asa trebuie: if(IsTrailerAttachedToVehicle(403)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); return 1; } if(IsTrailerAttachedToVehicle(515)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); return 1; } if(IsTrailerAttachedToVehicle(514)) { SendClientMessage(playerid, COLOR_GREEN, "Mission Complete! +5.000$" ); GivePlayerMoney(playerid, 5000); return 1; } else { SendClientMessage(playerid, COLOR_YELLOW, "You Must get a Truck and necessary Trailer to finish the mission!"); return 1; } return 0; } Adica la sfarsitul functiei OnPlayerEnterCheckpoint pui return 0 si la celelalte trebuie sa pai return 1. PS:Nus bun deloc la explicatii asa ca DND:))
  12. Sterge ; dupa ifuri si la vehicleid pune deasupra new vehicleid = GetPlayerVehicleID(playerid); si o sa mearga
  13. Marfa harta dar ai nevoie de un auto repair ca sa rezisti mai mult de 5 secunde acolo
  14. Ce GM folosesti?SAu pune comanda /login
  15. Cp mia luat vreo 20 min sa il repar. 10 min sa incerc sa il refac ca nu stiam ce sa ii mai fac ) si apoi miam dat seama ca erau gresite culorile adica u ai scris COlOR_YELLOW peste tot si in define ai scris COLOR_YELLOW si numele la actiuni.Data viitoare verifica daca pui numele corect pe wiki.sa-mp.com. Vezi sa il incerci sa vezi daca merge ca nu lam testat...Si incearca sa il faci ca dialog ca e mai usor asa ;)
×
×
  • 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.