-
Posts
4,144 -
Joined
-
Last visited
-
Days Won
1
Everything posted by dzek (varez)
-
i don't know what are you doing wrong but actually you are doing something wrong.. send me your txd. are you sure you are starting the resource after putting it on your server?
-
oh i didnt know that this function is available
-
oh my ..... function getTop2() outputChatBox ("Top time online", getRootElement(), 153, 51, 255, true) local top = { ["times"] = { 0, 0 }, ["accs"] = { nil, nil } ["pls"] = { nil, nil } } for key,val in ipairs(getElementsByType("player")) do local account = getPlayerAccount(val) local accountname = getAccountName(account) local time = executeSQLSelect ( "rol_time", "H","Player = '" .. accountname .. "'") local h = time[1]["H"] if tonumber(h) > top['times'][1] then top['times'][2] = top['times'][1] top['accs'][2] = top['accs'][1] top['pls'][2] = top['pls'][1] top['times'][1] = tonumber(h) top['accs'][1] = getPlayerAccount(val) top['pls'][1] = val elseif tonumber(h) > top['times'][1] then top['times'][2] = tonumber(h) top['accs'][2] = getPlayerAccount(val) top['pls'][2] = val end end outputChatBox("top1: player: "..getPlayerName(top['pls'][1])..", account: "..getAccountName(top['accs'][1])..", time: ".. top['times'][1]) outputChatBox("top2: player: "..getPlayerName(top['pls'][2])..", account: "..getAccountName(top['accs'][2])..", time: ".. top['times'][2]) end addCommandHandler("toptime",getTop2) and i hope before copying-pasting it you will try to read it, until you understand it, as i give you ready solution ..
-
remove addCommandHandler and replace it with onPlayerLogin event handler
-
and you mixed them both? well, thats incorrect..
-
The processor is 1300MHz? (That's too weak for San Andreas even on low details) Or is it AMD Sempron LE-1300 2.3GHz? That's much better. After googling after video card i found out it have only 64MB of memory. That's low value. You will (PROBABLY) be able to play SA with around 20-25 fps on 800x600.
-
Welcome to MTA You will like our community, various of gamemodes and of course all these possibilites of scripting Unfortunately I can't recommend you any server as I'm not playing MTA anymore and I don't know these servers, but I think somebody else will be able to recommend you something. Have fun, ~varez
-
REPORT COMMUNITY CENTER RESOURCES HERE
dzek (varez) replied to SATAN's topic in General MTA discussion
finally, .. thank you very much -
afaik-only specified peds ids will be working with specified txd, so be sure to use compatible txd to your ped id. this tool is working, I've written it, I've tested it too
-
you want to extract these values from each race map meta.xml? check out my z-limit resource then, it wasn't perfect but should help you
-
onPlayerLogin should have an argument with account element or account name.. just compare it to source name. if different - cancel event. 6-8 lines of script. anyway players can change their nick after login, until you block it too of course so what is the point? and even if you block changing nick - they can disconnect, change, get back
-
this is wrong FROM `vehicles`, impounded = 0 what that impounded thing should do for you ? you should read general mysql tutorial or just manual page for SELECT. also it's better to take your values on WHERE conditions into single quotes EVEN if the column is integer
-
yes, tested by myself
-
try using the tool i have in my sig: | | | | V
-
afair - gta engine allows to rescale objects - but their collision model stays the same - for "water" (like: from fountains, not typical water where you can swim) that was made smalled it will cause only to create water splashes where there is no water (but should be in 1:1).. anyway - mta devs seems not to be interesed in rescaling objects when collision model cant be rescaled..
-
getPlayerSerial seems to returning false.. idk why, script seems fine.. try debugging - remember - debug is not only that debug window but the whole idea of spotting bugs (read especially part about outputDebugString and how you can use it)
-
no no, it's not math, double negative (ban) doesn't make positive (unban) here.. it's more like ban (time-limited), and perma-ban ;]
-
its working o_O ?? and it's doing its job, or just not stopping and not working correctly? (idk what this "irc" is doing).. i just removed one timer to display with delay the error about sockets module not loaded (to display it instantly - because i was thinking this can be reason of it stopping itself w/out error - its preveting itself to load just after creating timer with this error - and this timer have no chance to do its job). if you dont understand this (its so messy sentence) - just know that i didnt changed ANYTHING that should make this actually work..
-
Try both at the same time
-
hmm.. try this one http://upload.dzek.metal.info/pliki/cor2.rar
-
i dont have any idea.. try to install nightly build: https://nightly.multitheftauto.com/
-
how i can run destruction derby = race gamemode on my server? BTW: read Server Manual insted of asking all these questions maybe? It will be much faster for you
-
the peds tool is not working? i'll check it
-
he have used gui editor THEN change SOME variable names (and not all their instances) inside the script .. o_O
