-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
This Topic should be locked anyway, for me it's just a request
-
GOD! ! Read WHOLE wiki page I've sent you! Debugscript command is only small part in the art of debugging. Read especially that part about outputDebugString.
-
Because "checkpoint" isn't visible mta element. (search wiki for "element",.. really do it, i know most ppl are ignoring wiki at all, but trust me and do it) It's custom one, and while map is loading race resource is creating markers in place where checkpoints are set in map file. Try to set all markers dimension but i think it won't be so easy, and you will have to modify race resource a lot.
-
All changes you are making on client scripts - are visible only on that client. Changing dimension of checkpoints/pickups on clientside - will make these changes only for current player which is running script. This is very good idea. Probably the best thing you can do. You need to understand the difference between clientside and server side.
-
try Debugging your script. Read this carefully - you will need this many times. especially outputDebugString
-
becouse it reset this to "dd" on another pickup. do it like this: addEventHandler("onMapStarting", root, function(mapInfo, mapOptions, gameOptions) local hunterFound = false for i, pu in pairs ( getElementsByType ( "racepickup" ) ) do if getElementData ( pu, "type" ) == "vehiclechange" and getElementData ( pu, "vehicle" ) == getVehicleModelFromName ( "Hunter" ) then hunterFound = true end end if hunterFound then maptype = "DM" else maptype = "DD" end outputChatBox(getPlayerName(source).."*this is a"..tostring(maptype).." map",getRootElement(),0,255,0) end ) edit: ive only checked/fixed the logic of script!, not if these lines: if getElementData ( pu, "type" ) == "vehiclechange" and getElementData ( pu, "vehicle" ) == getVehicleModelFromName ( "Hunter" ) then are valid and doing what they should
-
race pickups are not standard pickups. they are custom objects with collision spheres around it. just look how pickups are loaded/created in race resource - and make them load into another dimension too for checkpoints - that will be harder - as player have to go through all of them, and if you will clone them - it may get broken. you will have to rewrite some parts of race resource i think.
-
do you understand for what is it? it can be anything you want.
-
MONEY GIVE (GUI version) General info: This script allows players to show up GUI window with player list (without current player), and give entered amout of money to another player. Much better than chat commands. I haven't seen such script in community, so I made one long time ago. Perfect for any RPG, freeroam, or even race (if you are using some custom money feature). Or whatever gamemode that uses money Technical info: Default bind is F7 - you can change that inside moneygive_c.lua file - check last 5 lines of file. Even more info: If you have any bug reports/suggestions - leave reply here. This WILL BE updated.. soon, to use my (unreleased yet) text plugin resource (for better gui annotations). If you are satisfied with outputChatBox (personally I hate all those messages in chatbox which aren't real chat messages (from players) - just a mess!) Screenshots maybe?: (On the screenshot there is not players inside the list - becouse i don't have own server anymore, so don't have anybody to join for screenshot ) Sorry, no thumb, due to forum problems, but CLICK HERE to see the image Download: Temporary download, until community is back up and running
-
Bit .. ugly to me.. No need for that gothic font. And it will be better if you make a grid list with all player names inside, and memo (multi-line) input for text. If you need gridlist with all players nicknames inside (refreshing automatically) - pm me, i can give such code snippet to you
-
Moved to Media section.
-
[WIP] my 1. mta script - VxD - Quit Save (login)
dzek (varez) replied to Virus xD's topic in Resources
@basel-ksa: Same thing as post above. You asked to reupload both this and J-RPG - but remember not to use them both! -
[WIP] my 1. mta script - VxD - Quit Save (login)
dzek (varez) replied to Virus xD's topic in Resources
@youpit: You are asking for reupload this and J-RPG. Notice one thing written in J-RPG topic: Just a warning if you want to use them both. -
ummm? i'm confused. and waiting for you to fix this topic.. also im moving this into "support"
-
"Cant determine image dimensions" problem
dzek (varez) replied to vovo4ka's topic in Site/Forum/Discord/Mantis/Wiki related
Callum, he's linking to: http://img40.imageshack.us/img40/2091/c ... 07z.th.png And it's correct image file. URL can be anything, url in IMG is important -
Locking under request then.
-
Read stickies: viewtopic.php?f=91&t=26541&start=0
-
Try this: http://upload.dzek.metal.info/pliki/DATA.rar extract its contents into GTA San Andreas\DATA folder (it will ask to overwrite files - accept it. If it won't ask - you choosed wrong folder then!) Or just reinstall GTA San Andreas into new, clean folder - the simpliest way. With original copy of game it will be working with no problem.
-
source is player that died (wiki page says it). its better, but rank is not existing
-
sure, you can use onPlayerWasted, but .. this script is just totally wrong! function saveondie(rank,source) -- [b]wtf is this? check arguments list: [url=https://wiki.multitheftauto.com/wiki/OnPlayerWasted]https://wiki.multitheftauto.com/wiki/OnPlayerWasted[/url] | also DONT EVEN THINK OF NAMING ANYTHING "source". source is internal variable, and you should only read it![/b] outputChatBox(getPlayerName(source).." Rank: "..tostring(rank),getRootElement(),0,255,0) -- [b]and few totall randomness. where you got that rank? you never set it, well, you script do NOTHING[/b] end addEventHandler("onPlayerWasted",getRootElement(),saveondie)
-
wtf? this is just random words. You are another guy that thinks if you put some random parts from wiki together - it will be working like you want o_O. Get back to Scripting tutorial - spend a week on trying to understand it all..
-
there was no such script in community. and you can't just request it to be made for you - you have to do it by yourself (with lua language) start with: https://wiki.multitheftauto.com/wiki/Scr ... troduction
-
whoops, i forgot about adding 1 point.. local playeraccount = getPlayerAccount (source) local playerpoints = getAccountData(playeraccount, "DD.Points") if (playerpoints==false or playerpoints==nil) then playerpoints=0 end playerpoints = playerpoints + 1 setAccountData (playeraccount, "DD.points", playerpoints)
-
i dunno whats wrong then sorry
-
When i was 8yo i was learning new programming languages with extreme speed ^^
