-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
post your whole server.conf pls.
-
and addEventHandler (search wiki)
-
do it by yourself. this forum is not for requests like that - but for helping other people with scripting, when they actually have something and get stuck at one point. https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
Please : help me to install cars on my server ?
dzek (varez) replied to Drakola's topic in Scripting
1. Make a folder (don't use spaces, dots, and any special character, geneally, it's better to use just small a-z letters) (like: neweuros) 2. Put there 2 files: *.txd and *.dff one (like euros.txd and euros.dff) 3. Open Notepad (Start - Run - type "notepad", or press Windows Key + R and type "notepad") 4. Paste this code into notepad: txd = engineLoadTXD("euros.txd") engineImportTXD(txd, 587) dff = engineLoadDFF("euros.dff", 587) engineReplaceModel(dff, 587) 5. In Notepad select File->Save as.. In window that appear on the bottom (probably this is hidden in Vista/Win 7, and you have to click some arrows to show it) there is something like "Save as type" - and default is selected "Text files (*.txt)" - change it to "All Files" (this is important!), then go into your folder, and save this as "veh.lua" 6. Open Notepad again and paste this: <meta> <info author="me" version="1" type="script" /> <script src="veh.lua" type="client" /> <file src="euros.txd" /> <file src="euros.dff" /> </meta> 7. Save it again (don't forget about "All files") as meta.xml 8. Of course replace in meta.xml and veh.lua all "euros.txd" and "euros.dff" with names you have. 9. Also replace 587, with Vehicle ID you want to replace. 10. Move your folder into server/mods/deathmatch/resources - this is your new resource. 11. If server is already running type "refreshall" in console. Now simply start your resource ("start neweuros" or whatever name you have used) -
dont know why, some ppl (generally: race mappers) thinks thats MTA:Race's map editor is easier for them. Dunno why, but whatever
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
wiki.multitheftauto.com and wiki.multitheftauto.com are working for me (first one redirects to 2nd one) -
https://wiki.multitheftauto.com/wiki/OnPlayerJoin -- wiki says NO PARAMETERS. "source" is player element https://wiki.multitheftauto.com/wiki/OnPlayerSpawn -- wiki says there is a lot of parameters, none is player element, "source" is player element But it was too hard to open that page, right?
-
it's stopping on 4th line, gangRoot is never defined. It is your script? It's extremly simple script, and this error is SO EASY to spot. Also your xml "idea" is a bit wrong. It's valid, but.. not really good one. <gangs> <gang name="Grove Street" colorR="0" colorG="255" colorB="0"> <members> <member name="Aron" rank="3" /> </members> </gang> <gang name="varez gang" colorR="255" colorG="255" colorB="0"> <members> <member name="varez" rank="666" /> <member name="varez clone" rank="69" /> </members> </gang> </gangs> seems much better and well-organised
-
From where you got that "95" and "30"? Even if that numers are real - after a week after release - ppl should start complain. Anyway - let's wait for somebody from MTA team, maybe they'll say something useful to you.
-
Can't access wiki
dzek (varez) replied to mickdermack's topic in Site/Forum/Discord/Mantis/Wiki related
wiki is up and running since forums got back alive.. -
omg, i didnt see it before. You are using internal MySQL words as a column names (INT, KEY). To fix it, add this character - ` (it's something like single quote - on standard keyboards it's on the left from "1" key) before and after such reserved word (of course if it's column name [or table name, if you will ever call your table "int"], for values you should use standard single quote). Like: INSERT INTO `houses` (`ID`, `en_X`, `en_Y`, `en_Z`, `en_tX`, `en_tY`, `en_tZ`, `ex_X`, `ex_Y`, `ex_Z`, `ex_tX`, `ex_tY`, `ex_tZ`, `int`, `dim`, `cost`, `owner`, `key`) VALUES('" ..ID.. "', '" ..tostring(eX).. "', '" ..tostring(eY).. "', '" ..tostring(eZ).. "', '" ..tostring(etX).. "', '" ..tostring(etY).. "', '" ..tostring(etZ).. "', '" ..tostring(exX).. "', '" ..tostring(exY).. "', '" ..tostring(exZ).. "', '" ..tostring(extX).. "', '" ..tostring(extY).. "', '" ..tostring(extZ).. "', '" ..int.. "', '" ..dim.. "', '" ..cost.. "', 'none', ' ') anyway - its better to aviod naming columns/tables with reserved words.
-
well, it never happend to me. i think others dont have such problems too - because months are passing - and nobody is complaining
-
How to solve such problems function giveThem ( playerNick,amount ) outputDebugString("source player: "..getPlayerName(source)) local cash = getPlayerMoney(source) outputDebugString("cash: "..tostring(cash)) outputDebugString("amount: "..tostring(amount)) if (cash > tonumber(amount)) then either cash or amount is nil (i dont remember what is the result of tonumber(nil)) [nil = not set]
-
if you missed:
-
stop basemode and other non-critical resources, start mapmanager, then start basemode
-
You could say in which line there is that error. And if you have two separate problems - make two topic. For money send GUI check out Resources - there's two such scripts, one is mine ^^. For scoreboard - you did setElementData with value 0, and thinking why it's zero? you have to setTimer(1 sec, or even 5 sec is enough, no need to spam server with changing values for 50ms) and every that 1 or 5 sec get player money and set result to element data.
-
I'll repeat what i wrote in another topic: What's the point in quoting last message? What's a point in quoting whole freaking long message, becouse we want to say "thx" and put 10 similes? Anyway, enough is said in this topic. Locked.
-
start "mapmanager" resource in admin panel or in server console by typing "start mapmanager"
-
why copy? just start resource
-
set script as "client" in meta.xml file
-
try to avoid multi-posting, use edit button
-
Im looking for help with a respawn command pls
dzek (varez) replied to blackberry's topic in Scripting
Sure, but you can't request that. We are here to help ppl, not making whole scripts. -
Im looking for help with a respawn command pls
dzek (varez) replied to blackberry's topic in Scripting
This looks like a request to me. The code you gave us isn't needed, but can be implemented - but it's common part, not connected with respawning in DD/DM in any way. -
Hi, Welcome to MTA. Not sure if it is right place for this post (it looks more like general topic) - maybe some other mod will move this later. What can I say: As you have seen - MTA is offering much more than SAMP to do with scripting. MTA scripting differs from SAMP one, but it's a lot easier. Lua is very simple language, I've used to code in many languages, and PAWN was in my top 5 of worst languages i ever known (I used to make few scripts for Counter-Strike 1.6 server). MTA scripting can be confusing at start - becouse there are client side and server side scripts. They are working independent - server side on server, and client side on each client. After some time you will find this very useful and easy to understand. Just need to switch from "SAMP thinking" to MTA. We are getting and sharing our knowledge in MTA Wiki - check main page - there is box called Scripting - You will find there everything you need to start scripting, debug scripts, find out what are resources and how these things are all working. On the left menu you will find complete lists of server/client side functions and events. You can also download public scripts from our community (which is actually down, due to bigger update) - maybe you want to make something that is already made? Or just want to take a peek how it's done? If you are stuck with scripting - you already know where to look - Scripting section of the forum. What else? Umm, nothing comes to my mind right now (maybe because it's 1:45 am here). Good luck, ~varez PS. You could choose better title for your topic
-
So you are saying there was standard Infernus and replaced Infernus at the same time (or another car)? Or maybe admin replaced car like Manana? Have you tried them all, because you are so sure? Or maybe you was driving original vehicle, then admin started resource that replaced that vehicle (or resource finished downloading)? Anyway, it's not possible to have replaced and original SAME vehicle at one time.
