
Overkillz
Members-
Posts
545 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Overkillz
-
Good Job BOSSES !
-
Hey dear guys, Im trying to create a change spawn point. Well, some maps from race gamemode has more than 1 spawn, then Im trying to do that when the player press f1 move him to another one. Well, i started the code first outputting X, Y, Z, well, as it didnt work i came here to request what could be the problem. function nombreas() local aSpawnPoints = getElementsByType( "spawnpoint" ) for i, pSpawnPoint in ipairs( aSpawnPoints ) do local fX, fY, fZ = tonumber( getElementData( pSpawnPoint, "posX" ) ), tonumber( getElementData( pSpawnPoint, "posY" ) ), tonumber( getElementData( pSpawnPoint, "posZ" ) ) local spawnX = math.random( 1, #fX ) local spawnY = math.random( 1, #fY ) local spawnZ = math.random( 1, #fZ ) outputChatBox("Spawn X"..spawnX) outputChatBox("Spawn Y"..spawnY) outputChatBox("Spawn Z"..spawnZ) end end bindKey ( "F1", "down", nombreas ) Thanks for your time.
-
Hey dear guys. I would like to know if there is a way to create new objects in mta. For example. I would like to add some spilers, bumpers ..etc but I just know a way and it is remplacing the object by other which already exists. My question is if I can create new objects withou affecting to the rest. A guy told me that he could do it. But IDK how. Regards.
-
Hey dear community. Im working on a new userpanel for my server, but I have a lot of users already registered using the default db by MTA. Well, my point is close new register users by default mta db and force them to create an account on the forum to connect it with MTA Server. It will use mysql obyously. But allow them to log in with their old account (default db by mta if they have one.) There is a way to do that. ? Thanks for your time. I hope you can answer me.
-
Ok, I installed the last library that I needed. thanks for all, many days trying to find the problem u gave me the answer. Now my problem is fixed.
-
Well, Im using a dedicated server to host my servers and host my website. Well, I could connect to mysql db from my local server (not from host) and it works, it connected and I could acces to the tables ...etc but when I try to connect from the host, it doesnt work. I think the problem is on libmysql.dll / ml_sockets.dll / mta_mysql.dll What I need to check there ?
-
I could fix my problem, I could connect to my external database but now, when I try to connect it From my local host to external data base it connects but From external host (its the same as data base IP) to data base which are hosted in the same, it doesn't connect i Hope that someone can help me with this problem.
-
U cant use that url because it is not playing automatically a song. Try to use a song file.
-
I wont use if fileExists ... because they will be able to add their files into the resources folder, and I wont it.
-
Hey dear community, Im working on a gridlist and I would like to add all files from a selected folder. Could someone tell me which function should I use for it ? I tried to use getResourceFromName but it didnt work. Thanks for your time and regards.
-
Maybe you have to use an html file to add something like this "1920" height="1080" src="https://www.youtube.com/embed/2vD2fO8H0fs" frameborder="0" allowfullscreen>
-
Thanks man, and regarding about remove the default upgrades from infernus, could u tell me what is the function ?
-
I could fix my problem, but now Im getting a problem with the gamera, when I turn the spoiler on, it moves my camera so close between my camera and vehicle.
-
@#,+( _xiRoc[K]; > - it just add an object above my position. Im trying to attach my own element. @myonlake - I didnt understand both answer, Im trying to implement the model "test.tff" which is a spoiler for a car. Well, are you telling me that i can't implement it ? Sorry, I didnt understand that part.
-
thanks, I have forgotten that engineLoadDFF is a client side function. anyways im getting this problem:
-
Hey dear community, today I started to read about attachElements, well, I would like to attach a Spoiler to my infernus, I've already got the .dff file but I couldn't do it. function attachU ( source, commandName ) local x, y, z = getElementPosition ( source ) local aleron1 = engineLoadDFF ( "test.dff", 411 ) local aleron = createElement ( aleron1, x, y, z + 3 ) attachElements ( aleron, source, 0, 0, 5 ) end addCommandHandler ( "aleron", attachU ) DebugScript 3 drops me this message: I hope you can help me, thanks for your time. Regards.
-
It isn't a problem with the code, as I said, It works with my localhost, but when I want to connect it to my external database frpm my VPS, it doesn't work. IDK why should I post it. About the problem, its something with the number 10061, I have been read something about this, but I couldn't fix my problem.
-
You can't Unless he answer to your question on this topic. This zone is only to make question about scripting, not requesting skypes or contact methods.
-
-- To save the language of the player on his account setAccountData getAccountData -- To show the message only to the players from the same country getElementData setElementData -- And this bindKey(player,"Key","down","chatbox","Language")
-
Hey dear, im trying to connect to my dedicated server but it doesn't work. I have tried this on my local server and it works pretty good. Im using on both of them IPB. I don't know what is the reason about this problem in Debugscript 3
-
Thanks, OT: Im looking for a library of songs, there is some page which do it for free ?
-
Hey dear community, im here with a little question about getSoundLength Im trying to dont download the song from the meta, then, Im trying to play it from an external web (my website) but, Im trying to reduce the song from all songs except one, I have done the script but getSoundLength doesn't allow me to get the long time of this song. There is a way to get it without adding song in meta.xml ¿? Thanks for all
-
It is a script server side.
-
function infoHelp() setElementData(source,"allow",true) outputchatbox("/spam /insult /caps ..") end addCommandHandler("infohelp", infoHelp) function Caps() if getElementData(source,"allow") then outputchatbox("Info: Please turn off your caps") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("caps", Caps) function Spam() if getElementData(source,"allow") then outputchatbox("Info: Please stop spamming chat") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("spam", Spam) function Insult() if getElementData(source,"allow") then outputchatbox("Info: Please don't insult BITCH !") else outputchatbox("You are not allowed to use this | Type /infohelp") end end addCommandHandler("insult", Insult) Fixed it should works ...