crismar
Members-
Posts
263 -
Joined
-
Last visited
Everything posted by crismar
-
Inainte sa postezi verifica data ultimei postari
-
function openSniperGate(thePlayer) if tostring(getPlayerAccount(thePlayer)) == "crismar" then moveObject (gate3, 3000, -2772.7, 233.5, 6.3) end end addCommandHandler("openpaty", openSniperGate, false) I have this code, trying to make the command restricted only to account 'crismar' but it won't work. It's relaly annoying, I tried everything, the script IS serversided, still no result
-
Lumea are inculti, genii, prosti, banane etc. E normal, daca intra un hacker sau cineva decis sa imparta putin din ADNul de maimuta ce il domina, n-are decat, cand am atatia playeri pe server, sunt motivat. Chiar acum lucrez la un sistem de negot intre jucatori si NPC. Trecand peste ce fac eu, pe toate serverele intra de-astia care iau munca la "lupa", in general persoanele astea sunt doar niste tristi care nu sunt in stare sa realizeze ceva in viata si incearca sa-i aduca si pe altii la nivelul lor.
-
Eu personal cred ca daca tot facem topicuri de-astea si criticam toate serverele, n-o sa se schimbe nimic. Traim in Romania, e greu sa dai de copii culti in epoca feisbukului, a iFonului si a gheimingului de la 8 ani. Majoritatea celor care isi fac servere deschid mtaserver.exe, fac un forum repede sau un site cu Yolasite si gata minunea ). Putini investesc timp, altii pur si simplu nu au un punct de sprijin, si sa fim seriosi, GTAul exista de mai bine de 7 ani, credeti ca daca X isi face un server cu un gamemode facut de el si are 0 playeri se simte mai bine ? Eu personal pot sa zic ca sunt in tabara celor cu DayZ, doar ca stiu oarecum LUA si serverul meu nu e doar un DayZ downloadat, pornit, cu 3 moduri scuipate in sila si voila. Personal am facut serverul ca un experiment, si cand am intrat aici si am vazut critica 'constructiva' din partea unor nu pot sa zic ca mi-as fi facut server daca treceam mai intai pe aici. Momentan pe serverul meu sunt zilnic 40/40 playeri, si lucrez cat pot eu la un mod compilat (nu ca altii care iau versiunea decompilata de pe net, schimba culoarea la scris si ia uitati ce scripter bun su eu). Daca ar fi sa ma laud cu ceva din comunitatea mea ar fi ca poate nu sunt un geniu cu LUA, dar cu partea de design web si PHP stau foarte deci ma rog, contributia mea nu e nula.
-
Hello. I apologise if I'm posting in the wronge section, but I have a strange curiosity. Is it possible to find out how many accounts are registred on the server ? I'm using SQLite (and the default MTA SA account system). I'd be thankfull if you could provide me with the answer
-
Is it possible to have a function like outputServerLog but with a different target file ? I'm running a DayZ Gamemode and I'm using Globalchat addon. I've easily made all globalchat messages show up in the server.log but is it possible to alterate the function outputServerLog to write to a file let's say global.log ? It'd be helpfull since server.log is a complete mess.
-
Great, it worked perfectly! Thank you a lot.
-
Erm sorry but could you tell me what you changed to my code ? I'm trying to learn from my mistakes too
-
* Edit: I forgot to mention the error refers to this line: outputChatBox("#ff0000MESAJ DE LA "..getPlayerName(thePlayer)..": #FFFFFF"..tostring(theReason), theTargetElement, 255, 0, 0, true)
-
So I have this script: function adminPM(thePlayer, theCMD, theTarget, ...) if theTarget ~= nil and hasObjectPermissionTo(thePlayer, "function.kickPlayer", true) then local theTargetElement = getPlayerFromNamePart(theTarget) if(getElementType(theTargetElement) == "player") then local allArgs = {...} local theReason = table.concat(allArgs, " ") setElementData(theTargetElement, "lastpm", getPlayerName(thePlayer)) outputChatBox("#ff0000MESAJ DE LA UN ADMINISTRATOR: #FFFFFF"..tostring(theReason), theTargetElement, 255, 0, 0, true) else outputChatBox("/apm [Jucator] [Mesaje]", thePlayer, 255, 0, 0, true) end end end addCommandHandler("apm", adminPM, false) function adminReply(thePlayer, theCMD, theTarget, ...) local theTargetElement = getElementData(thePlayer, "lastpm") local allArgs = {...} local theReason = table.concat(allArgs, " ") outputChatBox("#ff0000MESAJ DE LA "..getPlayerName(thePlayer)..": #FFFFFF"..tostring(theReason), theTargetElement, 255, 0, 0, true) end addCommandHandler("rpm", adminReply, false) Or well, part of script. The /apm part works perfectly. The /rpm part seems to do what it's supposed to be but theTargetElement doesn't get parassed as a target but as a string. Full Debugscript error is something like: outputChatBox expected element at argument 2, got string [ 'lastpm' value ] So it works, I just don't know how to convert theTargetElement from a string to a element. Any ideas ?
-
Ok this is just so epic fail. Thank you a lot Mr.Pres[T]ege <3
-
Ok so I have this function: function vipHelp(thePlayer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("VIP")) then outputChatBox("VIP: /vipfood | /vipwater | /viptemp | /vipblood", thePlayer, 0, 222, 0) outputChatBox("VIP: /vipbandit | /vipnano | /vipitems", thePlayer, 0, 222, 0) end end addCommandHandler("viphelp", vipHelp, false) and I keep getting this error in debugscript: vipsystem/client.lua:29: attempt to call global 'getPlayerAccount' (a nil value) The line 29 is this one: if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("VIP")) then What is the problem with it ? I can't get this simple script to work and I got no idea why...
-
You sir are my hero. It worked hah! Thank you a lot
-
No, I get no warnings or errors in debugscript. That's what made me ask for help.
-
Ok I'm having a DayZ Gamemode (legal one) and I have made a couple of systems. One of them is the VIP system, which is adding a text on top of player if his team is VIP. Now, the problem is I have this code: function createVIPTeam () vipTeam = createTeam ( "VIP", 255, 0, 0 ) end addEventHandler("onResourceStart", resourceRoot, createVIPTeam) function setVIPTeam() if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("VIP")) then setPlayerTeam(source, vipTeam) outputChatBox("#00FF00VIP: Bine ai revenit #FFFFFF"..getPlayerName(source), source, 255, 0, 0, true) end end addEventHandler("onPlayerLogin", getRootElement(), setVIPTeam) And it works, I am in VIP group, when I connect the message shows up, but the team doesn't get set, any ideas why ?
-
Here is the logg: http://pastebin.com/xarbcgJm
-
I did that myonlake, it works fine but I get "Choose a nickanme window". If I keep it open, everything is fine, if I close the choose nickaname thing, it suddenly freezes. Damn it!
-
Hello there! So I have Multi Theft Auto installed since a lot of time. A few days ago I installed SA:MP, and now it my MTA will not start. I wanted to know if there are any SA:MP files that can interfere with my MTA. When I doubleclick on MTA logo the Multi Theft Auto logo with [stop playing with yourself] shows up yet it won't start. If I go to processes I find Multi Theft Auto.exe and gta_sa.exe running. Anyone can help ?
-
reinstalling windows worked! I got my old FPS back along with fully functional MTA! Thank you a lot Towncivilian.
-
I can't do it... "Error: Server execution failed"... It's sooo frustrating, I want to play Do you think reinstalling windows might fix the problem ?
-
So just copy it, not launch it right ? I already had a file so I used replace... The file was larger than what you gave me, guess that will fix the problem... Log incoming! EDIT: http://pastebin.com/urqCFCWr
-
Jeeesus... It was working perfectly yesterday... If you could that wuold be awsome.. I re-reinstalled GTA:SA and installed MTA and GTA in separate folders... still no fix.
