Jump to content

rusztamas

Members
  • Posts

    145
  • Joined

  • Last visited

Everything posted by rusztamas

  1. Sorry for the Hungarian language, i'm making a test server, and i'm learning mta scripting here, that's why it's not english: serials = { ["4BB221CA8B037BE7FDF3A8FC0DE1A994"] = false, --if i set this value to false, it will output error message ["CFCE0566CABAED4FDC72BD453130F5F4"] = true, Whole script: serials = { ["4BB221CA8B037BE7FDF3A8FC0DE1A994"] = true, ["CFCE0566CABAED4FDC72BD453130F5F4"] = true, } names = { ["rusztmas"] = true, ["Rusz_Tamas"] = true, } ips = { ["92.249.175.138"] = true, ["192.168.1.103"] = true, } function authenticateManually(thePlayer) local serial = getPlayerSerial (thePlayer) local name = getPlayerName (thePlayer) local ip = getPlayerIP (thePlayer) if serials[serial] then outputChatBox ("Serial alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true) outputChatBox (""..serial.."", thePlayer, 255, 255, 255, true) else outputChatBox ("Serial alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true) outputChatBox (""..serial.."", thePlayer, 255, 255, 255, true) end if names[name] then outputChatBox ("Név alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true) outputChatBox (""..name.."", thePlayer, 255, 255, 255, true) else outputChatBox ("Név alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true) outputChatBox (""..name.."", thePlayer, 255, 255, 255, true) end if ips[ip] then outputChatBox ("IP cím alapján sikeres volt a beazonosítás!", thePlayer, 0, 255, 0, true) outputChatBox (""..ip.."", thePlayer, 255, 255, 255, true) else outputChatBox ("IP cím alapján sikertelen volt a beazonosítás!", thePlayer, 255, 0, 0, true) outputChatBox (""..ip.."", thePlayer, 255, 255, 255, true) end end addCommandHandler ("try", authenticateManually)
  2. The solution was: I always tried them with bad arguments, by using thePlayer, at onPlayerJoin My F8 serial is wrong, but when i join in the game, it outputs to server console: [2016-10-12 16:10:58] CONNECT: rusztmas connected (IP: 192.168.1.103 Serial: 4BB221CA8B037BE7FDF3A8FC0DE1A994 Version: 1.5.2-9.09928.4) [2016-10-12 16:10:59] JOIN: rusztmas joined the game (IP: 192.168.1.103) With the serial 4BB221CA8B037BE7FDF3A8FC0DE1A994 it is working, but with my F8 serial, CFCE0566CABAED4FDC72BD453130F5F4 it is not... is this normal?
  3. I put your script in: I really don't know what the problem is. XML is correct, i think: <meta> <info author="Rusz Tamás" type="script" name="Script" /> <script src="codeS.lua" type="server"></script> </meta>
  4. I tried it by getPlayerName and inserted my name in the list, and it worked... but i need it with IP or serial
  5. i'll give it a try again... the code i pasted here is a corrected edition, i hope it'll work
  6. Hello! Here is my script: function serialCheck(thePlayer) local check = getPlayerSerial (thePlayer) if check == "CFCE0566CABAED4FDC72BD453130F5F4" or "295814D56EC67407443BFEA3D29D9193" then outputChatBox ("Hello!", thePlayer, 0, 255, 0, true) else outputChatBox ("Error!", thePlayer, 255, 0, 0, true) --or return nil (if possible do not do anything here) end end addCommandHandler ("check", serialCheck) Every time i type in check, it outputs the error message. My serial is the first, the second is my friend's one. If it would work, after hello, it would do mutch more. What i tried to do: 1) gets player serial, and checks if the player's serial is in the list 2) if it is in the list, it will output "hello" 3) if the player's serial is not in the list, it will output the message, "error" What is the problem?
  7. Hello! My default gta sa hud will not hide, no matter what i do, after the login camera animation finishes, it will put this hud back. But while the animation is going, it's not there. I've put in this resource: https://community.multitheftauto.com/index.php?p=resources&s=details&id=6171 , and there are still gta sa hud elements in my server how can i get rid of them? Images about it: here the gtasa hud is not showing But here it is: (this picture has been captured a few moments later than the first one) This max be the problem? spawnPlayer(source, x, y, z, rot, skin) x x z is defined as the last position, before logout, rot as rotation, skin as playerskin... setElementPosition (source, x, y, z, rot, skin) setCameraTarget (thePlayer) did not fix it...
  8. Its not working for me, and i couldnt find it here either: https://wiki.multitheftauto.com/wiki/Server_Commands
  9. Hello, my suggestion is real simple. When you start your MTA:SA server, you'll see a command box. There are commands, like whois, whowas, but you can use these in-game too. I write this, because it is a bit annoying, in every server console you can kick or ban somebody. The story was: I hided secret commands, that gives you ovner permissions on my server. Somebody found one, and told it to his friends, and f*cked up my server. I heard it from messenger, because my computer broke down today. I connected to my VPS, tried to ban them from server console, but i couldn't because there are no permissions in server console like ban or kick. I don't want any misunderstanding. What do i mean under server console? In case if you have windows and you start MTA Server.exe you se a black box, and it shows you server logs, and you can manage resources and accounts there. When you just start a server, it will write basic infos, like servername, port, ip and else... It also has an fps counter nearly on the top. Please make a ban and kick command in server console, MTA!
  10. Hello, i'd like to replace the GTA SA's pixely blips, with HD ones, for example with CS:GO icons, and things like this, is this possible?
  11. I did: I checked, and the resource contains 00007.png, at that place. I deleted all my client files from my "mods" folder. I checked, and the http-client-files folder contains the file. How to fix?
  12. Hello! I can't create water for some reason. What the problem could be? My script: (whole script) function eltavolitom() removeWorldModel(1412, 1000000,0,0,0) removeWorldModel(1308, 1000000,0,0,0) removeWorldModel(4983, 1000000,0,0,0) removeWorldModel(5681, 1000000,0,0,0) removeWorldModel(11245, 1000000,0,0,0) end addEventHandler ("onClientResourceStart", root, eltavolitom) function viz( ) viz = createWater ( 1937.36108, -1815.23242, 13.54688, 1923.87573, -1815.31104, 13.54688, 1923.87622, -1802.02820, 13.54688, 1937.36182, -1802.02759, 13.54688 ) setWaterLevel (viz,10 ) end addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), viz) I want to create water on this picture: http://kepfeltoltes.hu/160705/viz_www.k ... es.hu_.png
  13. Social Gaming's mysql resource. Shall i send the whole script to you?
  14. Hello these are the things what i wrote to my newly installed ubuntu server: sudo apt-get install mysql-server --filled in sudo apt-get install apache2 --filled in sudo apt-get install phpmyadmin --filled in vim /etc/apache2/apache2.conf Include /etc/phpmyadmin/apache.conf [phpMYADMIN, MYSQL-SERVER, APACHE WEBSERVER IS WORKING] I put libmysql.so.16 into the main directory, (where the mta-server64 file is) and in to the mods/deathmatch folder too. mtaserver.conf loads mta_mysql.so, which is in the x64/modules folder. I imported the .sql file to the phpMyAdmin too, without any problems. The script outputted to my chatbox, that the registration was successfull, and no failure was detected. But i can register 200x times with the same infos, that means, it won't insert the registration infos to the database. What can i do here?
  15. rusztamas

    nvidia optimus

    Hello! i've got a problem. Every time i start MTA:SA i have to choose from some options, alternative nvidia, standard nvidia, alternative intel, standard intel, and my friend had this problem too, but he only needed to choose it once, and it didn't appear again. But for me... it appears every time, and it's annoying. I reinstalled my pc for this, and updated all my drivers, but still appearing. How can i make it, to remember my decision? My game client is working with all the options, that it offers me. GTA SA singleplayer works perfectly, without any problems, like nvidia optimus. It hasn't been doing this thing, but it started doing it about a month ago, and now it's really annoying. How can i fix it? Reinstalling anything didn't fix it. Updating drivers neither. Reinstalling my pc neither.
  16. Well, that was some help, you helped me now again, like always ccw, thank you
  17. Hello guys! Today, i tried to replace a default San Andreas model with an exported VC model. We know, that both versions uses dff and txd for their models, and their textures. But when i put the model in to my server, it outputted in my debug script, that it could not replace the model. What the problem could be? ID = 2 function TXDFile() TXD = engineLoadTXD("name.txd") engineImportTXD(TXD, 2) end addEventHandler("onClientResourceStart",resourceRoot,TXDFile) function DFFFile() DFF=engineLoadDFF("name.dff") engineReplaceModel(DFF, 2) end addEventHandler("onClientResourceStart",resourceRoot,DFFFile) > author="tylerbcass" type="script" description="kocsi_1"/> ="script.lua" type="client"/> src="name.txd"/> src="name.dff"/>> name.txd and name.dff is excisting in the main directory of the script. The original name of the model and the texture is play10.txd and play10.dff, exported from Grand Theft Auto Vice City's gta3.img. Complete script, for staff: http://upload.mtasa.com/u/188073455/vicestuff.rar_
  18. Hello guys! I have a question for example i created a client sided script, and i used outputChatBox like this: function output() outputChatBox ("Test", root, 255, 255, 255, true) --Do we need the "root" argument? end addCommandHandler ("outpt", output)
  19. Hello guys! I have for example a custom paintjob (i made it) for Sultan. But i haven't got any idea how can i replace it with the default one. I've been looking the answer for this question for about 4 hours from now, but i have found nothing yet.
  20. It is still without a texture! http://upload.mtasa.com/u/946599967/rio.rar_ Here is the script. I don't know what the problem could be... (there is an other model, fav_01, you can see it in the downloaded script, and it's working properly, but these 2 are not.)
  21. Hello guys! A few days before i had a problem, that collision is not loading on my models. Now i have the same problem, but in textures. It looks like this: http://kepfeltoltes.hu/160315/mta-scree ... es.hu_.png Upload: (via upload.mtasa.com) http://upload.mtasa.com/u/946599967/rio.rar_ Script: addEventHandler('onClientResourceStart', resourceRoot, function() outputChatBox ( "Ez a resource válaszol.") --This resource responds local txd = engineLoadTXD('files/fav_props.txd',true) engineImportTXD(txd, 4001) local dff = engineLoadDFF('files/fav_brick.dff', 0) engineReplaceModel(dff, 4001) local col = engineLoadCOL('files/fav_brick.col') engineReplaceCOL(col, 4001) engineSetModelLODDistance(4001, 5000) local txd = engineLoadTXD('files/fav_props.txd',true) engineImportTXD(txd, 4004) local dff = engineLoadDFF('files/fav_fastfood.dff', 0) engineReplaceModel(dff, 4004) local col = engineLoadCOL('files/fav_fastfood.col') engineReplaceCOL(col, 4004) engineSetModelLODDistance(4004, 5000) end ) Meta: <meta> <script src="script.lua" type="client" /> <file src="files/fav_brick.col" /> <file src="files/fav_props.txd" /> <file src="files/fav_brick.dff" /> <file src="files/fav_fastfood.col" /> <file src="files/fav_fastfood.dff" /> </meta>] Debugscript 3 does not sending warning or error messages.
×
×
  • Create New...