Jump to content

fmj02

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by fmj02

  1. Nie męcz się kolego z MTA Paradise, nie zrozumiesz tak szybko czyjegoś kodu, będziesz musiał siedzieć godzinami. No ale jak tak bardzo ci na tym zależy... MTA Paradise jak i Valhalla nie są w jednym zasobie, tylko są porozdupcane. Można oczywiście dopisywać tam różne pierdoły za pomocą call albo "przedrostka" exports.nazwazasobu:funkcja()... dalej radź sobie sam bo komu by się chciało tyle pisać
  2. function KickPlayer(thePlayer, command) outputChatBox ("Você vai sair do servidor, em 5 segundos.", thePlayer, 255, 255, 255) setTimer(kickPlayer,5000,1,thePlayer, "Você saiu com sucesso.") end addCommandHandler("sair", KickPlayer) I don't understand what do you want, I understood you want to kick the player when he will use /sair command after 5 seconds.
  3. Currenltly I continue MTA Paradise project I've got polish server, but it's shit, everything fucks, too many things to edit. I will help you, I know all the paradise, developed it one year ago and now too. 1. How to make colorful nicknames for factions? - I will give u an example(its just a setPlayerNametagColor): addCommandHandler( { "guard", "sacfguard" }, function( thePlayer, commandName ) if exports.players:isLoggedIn( thePlayer ) then if exports.factions:isPlayerInFaction( thePlayer, 18 ) then -- if player who uses this command is in faction id 18 setElementModel ( thePlayer, 71 ) setPedArmor ( thePlayer, 100 ) giveWeapon ( thePlayer, 3, 1 ) giveWeapon ( thePlayer, 24, 500 ) giveWeapon ( thePlayer, 41, 100 ) setPlayerNametagColor( thePlayer, 100, 0, 100 ) -- set his nametag color else outputChatBox( "(( You are not in SACF. ))", thePlayer, 255, 0, 0 ) end end end ) 2. How to make a gates for factions? - Make it like every gates but with exception isPlayerInFaction local LSFDbarrierturn = createObject ( 968, 1667.9000244141, -1551.1999511719, 13.199999809265, 0, 270, 270 ) function szlabanLSFD(thePlayer,command) if(exports.factions:isPlayerInFaction(thePlayer, 3)) then outputChatBox("barrier turn .. bla bla bla.",thePlayer) setElementRotation ( LSFDbarrierturn, 0, 360, 270 ) setTimer (setElementRotation, 7500, 1, LSFDbarrierturn, 0, 270, 270 ) else outputChatBox( "(( You are not in LSFD. ))", thePlayer, 255, 0, 0 ) end end addCommandHandler("lsfd", szlabanLSFD) 3. How to showed the nick of the character's head? take it ;p http://www37.zippyshare.com/v/17174464/file.html 4. How to make a commands /repair for roadside assistance, /sethealth for medics, /freeze, /unfreeze, /mute, /unmute, /kick and /jail, /unjail for police? -- write like every normal function but with exports.factions:isPlayerInFaction(thePlayer, factionid) or exports.factions:isPlayerInFactionType(thePlayer, factiontype)
  4. first of all you need extract hud.txd textures into .png or similar format ( I mean weapons, or health bars ). http://img16.imageshack.us/img16/2108/weaponsx.png ( one weapon is comes in one image ) you can set weapon images names to ID's then just use dxDrawImage(x, y, x, y, "weapons/"..getPedWeapon(getLocalPlayer())..".png", 0.0, 0.0, 0.0, tocolor(255 , 255, 255, 255), false) ( put the weapons images into weapons folder ) To draw the ammo, money or time just use dxDrawText() , nowadays MTA supports custom fonts so you can draw text with every windows font by dxCreateFont() take this vice city stories hud from my server http://www3.zippyshare.com/v/54404084/file.html
  5. I've got the problem with maps, when I join the server maps are disappearing but when I restart the maps they are showing( they are showing when I restart them( download again ) ) how can I fix that? this is meta file I have. Around 3mb is downloading when I join but when I login I can't see these maps. I have to restart maps resource, download them again and they are showing then... "maps/admin base.map"/> "maps/Ballas.map"/> "maps/Beach_Party.map"/> "maps/boatpark.map"/> "maps/bparty.map"/> "maps/btraffic.map"/> "maps/casino la luma1.map"/> "maps/casino the punk.map"/> "maps/Cj_HOUSE.map"/> "maps/Doherty Gas Station.map"/> "maps/drugnewhouse.map"/> "maps/fbi inside.map"/> "maps/FBI-LS.map"/> "maps/FBI.map"/> "maps/fbibase8.map"/> "maps/fbibaseready.map"/> "maps/fbimapnew.map"/> "maps/Fire Department.map"/> "maps/Firestation5.map"/> "maps/gangstatest.map"/> "maps/Garages.map"/> "maps/harbourmap.map"/> "maps/Kyro.map"/> "maps/LSPDandSAN.map"/> "maps/maptesty.map"/> "maps/MS Hq.map"/> "maps/my epic house.map"/> "maps/myminimap.map"/> "maps/Office.map"/> "maps/parkcity.map"/> "maps/PD gates.map"/> "maps/PD int.map"/> "maps/pd-es.map"/> "maps/pd-impound.map"/> "maps/pd-interior.map"/> "maps/PD.map"/> "maps/PDjail.map"/> "maps/Pier.map"/> "maps/prison.map"/> "maps/reed.map"/> "maps/SACF yard.map"/> "maps/SACF.map"/> "maps/SAIA Tower.map"/> "maps/SAN Heli pad.map"/> "maps/santa base.map"/> "maps/SAPDHQs.map"/> "maps/SFbase.map"/> "maps/SFPD.map"/> "maps/shipfix.map"/> "maps/Shooting range.map"/> "maps/silverballs.map"/> "maps/Streetracerbase.map"/> "maps/thefortress.map"/> "maps/Training area (buiten).map"/> "maps/Training area.map"/> "maps/trappen.map"/> "maps/Yakuza HQ.map"/> "maps/yakuza stuff.map"/> "maps/yakuza.map"/> "maps/Yakuzanew.map"/> "maps/Commerce.map"/> EDIT: is there any way to client sided map download after login?
  6. @dzek: Nie polecam hostingu w Niemczech sam miałem okazję korzystać z kilku i gracze skarżyli się na networki. A co do serwera to naprawdę dobra inicjatywa aby zacząć takie coś co prawda słyszałem już o tym projekcie jakieś 2 tygodnie temu( zyskał nawet spory rozgłos wśród sceny MTA, nie tylko wśród polskiej )
  7. Search for some LUA decompiler. I think there are 2 or 3 official releases of this kind of decompiler.
  8. Hello Could anyone help me recover my password? https://community.multitheftauto.com/index.php?p= ... &id=325190 I forgot email and password, but the account is mine. There is basketball resource made by me https://community.multitheftauto.com/index.php?p= ... ls&id=4676 and I wonder if it is possible to change community nickname to midas.
  9. hello it is possible to specify visibleDistance on map for blips? I tried it but it doesn't work, visibledistance is infinity "2244.798828125" posY="-1665.0263671875" posZ="15.4765625" icon="45" size="2" r="255" g="255" b="255" a="255" ordering="0" visibleDistance="50">
  10. fmj02

    Help Please!

    maybe tell if you have got any debug errors and for what set element data is used, this part of code is not needed I think.. addEventHandler("onResourceStart", resourceRoot, function() for index, player in ipairs(getElementsByType("player")) do setElementData( player, "n.tag", "Player" ) end end ) addEventHandler( "onPlayerJoin",root, function( ) setElementData( source, "n.tag", "Player" ) end ) addEvent("change1", true) function changename( thePlayer, tag) if ( not tag ) then return end local newtag = tag setElementData ( thePlayer, "n.tag", newtag ) outputChatBox ("Tag :".. newtag, thePlayer,0,255,0,true ) end addEventHandler("change1", root, changename) function chat( msg, type ) if (type == 0 and getElementData( source, "n.tag" ) ~= false) then cancelEvent() local r, g, b = getPlayerNametagColor(source) outputChatBox ("#0000FF" .. tostring(getElementData( source, "n.tag" )) .. " ".. getPlayerName ( source ) .. ":#FFFFFF " .. msg, getRootElement(), r, g, b, true ) end end addEventHandler("onPlayerChat", root, chat )
  11. fmj02

    Help Please!

    turn off 'play' then
  12. fmj02

    Help Please!

    "I Want not to Repeated the crown in chat.." what do you mean saying crown, crown is thing which some king uses. You mean that when you say something it outputs twice in the chatbox? Turn off your freeroam resource then.
  13. Nie jest to wcale trudne do zrobienia aczkolwiek dla początkujących programistów może się takie okazać jak varez napisał wyżej, wiele nowych programistów ma problem z rozróżnieniem strony klienta od strony serwera. Najlepiej jeśli ma być to serwer dla twoich kolegów wybierz sobie jakiś gotowy gamemode jakich jest pełno na community i pobieraj do niego dodatki, później jak troszkę się poduczysz i będziesz ogarniał to napiszesz sobie elegancko taki skrypt i będzie gites, każdy ma na początku jakieś problemy z programowaniem (jeśli to jest twój pierwszy język) ja pamiętam szukałem kursów na google, czytałem nawet to czego nie rozumiałem, wpatrywałem się w to tak długo aż w końcu pojąłem o co chodzi, podczas nauki języków jest to też świetna okazja aby nauczyć się lepiej j. angielskiego ale to już sam ogarniesz jak będziesz chciał.
  14. I was bored one day, I've decided to make cPed resource fix which I found in my resources collection ;x. Tiny changes but resource doesn't lag anymore.
  15. Haha slotman lol. Function hasn't got arguments.
  16. What you should do? Read this all, if you don't understand something, just leave it to later. http://www.lua.org/manual/5.1/ My advices: - don't ever give up - use wikipedia and google for definitions - write your own examples - use wiki https://wiki.multitheftauto.com/ - use notepad++ - if you want to take something from other res to your res read all lines slowly, if you don't understand function watch wiki. IN LUA - CONSOLE function myfirstfunction() print("Hello World") end IN MTA function myfirstfunction() outputChatBox("Hello World") end addEventHandler(.... if you have problem with your script use [lua] tags
  17. Commands: it's probably create interior, I don't know your version of paradise, these commands are from my unofficial release. MTA PARADISE 1.00 COMMAND LIST COMMAND LIST FROM: 27.10.2010 OTHER COMMANDS /reloadacl /setskin nick skinname /get nick /goto nick /setname nick newname /freeze /unfreeze /sethealth, /sethp /kick /ban /staff, /admins, /mods /staffduty, /adminduty, /modduty /getpos /report, /re /endreport, /er /reports /acceptreport, /ar /closereport, /cr /restartall /startall /spectate, /spec, /recon /stopanim /anim /adminchat, /a /freecam /giveitem /call /pickup /p /hangup /sms /jail /release /jailtime /arrest /replace MAP COMMANDS /addmap /removemap /setmapdimension /Replace weapon /setblipcolor /setblipscolor /id /reloadpermissions /changechar /pay /policeduty, /duty /motor /police /swatduty, /swat /firefighter /medic /armyduty, /army /arbygirl, /armyg /fine /offduty /strobe /strobeoff /teleport /crunt /changeteam /mod /ed - miniedtor /upanel - open panel for users /adduser /saveskin [id] - saves skin /shop, /openShop1 /repairvehicle, /fixvehicle /brakes, /handbrake /repairvehicles, /fixvehicles /fillvehicle, /fuelvehicle, /refillvehicle /fillvehicles, /fuelvehicles, /refillvehicles /respawnvehicle /respawnvehicles /park /getvehicle /gotovehicle /vehicleid, /thisvehicle /aflip /oldvehicleid, /oldvehicle /setwindowstinted /setvehiclecolor, /setcolor /setvehiclefaction /lookvehicle /toggleengine /togglelights /temporaryvehicle, /tempvehicle, /vehicle /setvehicleowner /sell CREATE COMMANDS TEXT CREATE COMMANDS: /createtext [text] (/createtext Hello World!) /deletetext /nearbytexts ------------------------------------------------- INTERIORS COMMANDS: /createinterior, /createint [name] (/createint bar) /deleteinterior, /delint, /delinterior [id] (/deleteint 1) /setinterior /setinteriorinside /setinteriorprice /setinteriorname /getinterior /sellinterior, /sellproperty INTERIORS CONFIGURATIONS: -- houses -- TODO: should be renamed to [cagegory][num], low1, etc. house1 -- two floors house2 house3 house4 house5 -- ryder's house house6 -- Awesome House house7 house8 -- two floors house9 house10 house12 house13 -- CJ's house house14 house15 house16 house16 house17 house18 house19 house20 house21 house22 house23 house24 house25 house26 house27
  18. You want to spawn player at the same location where he died?
  19. Yes, this is paradise roleplay - as resources. All what you need to configure is acl.xml, mtaserver.conf, sql resource.
  20. I don't understand you. Your english is more complicated than dog language.. Second marker shouldn't have same variable as first marker.
  21. This is server-side script, don't forget about it.
  22. If some variable doesn't exist, script will not run. Nevermind, what is wrong with this code?
  23. Learn LUA first. This is for you: function player_Spawn() -- The source of this event is the player that just spawned. setElementModel(source,0) -- set spawned player skin to 0 end addEventHandler ( "onPlayerSpawn", getRootElement(), player_Spawn ) function player_Wasted ( ammo, attacker, weapon, bodypart ) -- The source of this event is the player that died or got killed. local x,y,z = 0,0,0 -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted ) function spawnonjoin ( ) -- The source of this event is the player who joined. local x,y,z = 0,0,0 -- your coords spawnPlayer(source,x,y,z) end addEventHandler ( "onPlayerJoin", getRootElement(), spawnonjoin )
  24. This topic should be in scripting section, but for that you will need these EVENTS: https://wiki.multitheftauto.com/wiki/OnPlayerWasted https://wiki.multitheftauto.com/wiki/OnPlayerSpawn FUNCTIONS: https://wiki.multitheftauto.com/wiki/SetElementModel (the model should be 0 then - cj skin) https://wiki.multitheftauto.com/wiki/SpawnPlayer
  25. And what it changes? Except this: setElementVisibleTo(ambulance, root, false) ambulance variable doesn't exist
×
×
  • Create New...