-
Posts
636 -
Joined
-
Last visited
Everything posted by 'LinKin
-
Hello, I customized a community script which disables the car-smoke. So, when I type /dissmoke [player] it disables the car-smoke for that player ONLY. But I'm having one trouble, when I perform that command, it disables the car-smoke of EVERY player. This is part of the script: Clientside: addEvent("sync:forceSmoke", true) addEventHandler("sync:forceSmoke",root,toggleSmoke) Serverside: selectedPlayer = getPlayerFromName(theTarget) triggerClientEvent("sync:forceSmoke", selectedPlayer) I believe it is because of the 'root' in the clientside script; However, I'm not sure... How can I make it so that it only turns off the car-smoke of the selected player? Thanks, - Linkin.
-
Hello, I want to know how to add kill points to the players when they kill someone in DD. More specificly, I need to know how to trigger something when a player is killed by another one. It has something related to ColShape. But I don't really know.. I readed about how to create a colShape rectangle. I don't know if that is required. EDIT: Found this https://wiki.multitheftauto.com/wiki/On ... eCollision But how to get the player who collisioned the source?
-
I think you did not understand me properly. I split one animated gif into many separated .gif images (static images) by using this http://gifmaker.me/exploder/ It generates separated image files tmp-0.gif tmp-1.gif tmp-2.gif tmp-3.gif tmp-4.gif tmp-5.gif tmp-6.gif
-
Doesn't castillo's script work with .gif images? Because when I split one animated gif using some online tool, it outputs each image as .gif extension. And the script says: Bad usage @dxDrawGifImage [Can't load file] If you try it with png images it works perfectly
-
Thank you both. I've managed to do it by commenting 2 lines in race_server.lua --outputDebugString( "Warping player into vehicle for " .. tostring(getPlayerName(player)) ) --warpPedIntoVehicle( player, vehicle ) But I was wondering, is it possible to make a condition in race_server so that it doesn't execute these lines when my custom resource to eject a player from his vehicle is running? Something like; if not getResourceData(myscript,"state") == "Running" then outputDebugString( "Warping player into vehicle for " .. tostring(getPlayerName(player)) ) warpPedIntoVehicle( player, vehicle ) end Note: I know getResourceData function doesn't exist. It was just an example to make you understand what I am looking for. Thanks in advance.
-
Hello, I've made this fun resource. It's purpose is to remove a ped from his vehicle. function leaveVehicle(thePlayer) outputChatBox("Command Executed") for i, player in ipairs (getElementsByType("player")) do if player == thePlayer then outputChatBox("Player = Source") if isPedInVehicle (player) then outputChatBox("Ejecting...") removePedFromVehicle ( player ) end end end end addCommandHandler("eject", leaveVehicle) Works fine, but I've got one trouble. As soon as the player is removed from the vehicle, something auto-warps him again into his vehicle. I think it has something to do with Race scripts. But I'm not sure... Debugscript 3 ouputs this: INFO: Warping player into vehicle for |GMC|LinKin How can I avoid this auto-warping after removing the player from the vehicle?
-
Well I wrote that e-mail like one week ago. Still have no answer. Does anyone else has this problem?
-
Is there any person who knows about Race script? I just can't find this. I've looked in every race script. Maybe I'm searching for the wrong word
-
Sane Hosting - DDoS Protected - Cheap and Reliable
'LinKin replied to SaneHosting's topic in Hosting solutions
You don't need a credit card. You can use bank transfers or a debt mastercard or a debt mastercard visa. Or alternatively buy a prepaid visa or mastercard from a post office or somewhere that sells them in your country. Debit mastercard? Buy a prepaid visa? or mastercard? You must also pay for the usage of those cards. -
Sane Hosting - DDoS Protected - Cheap and Reliable
'LinKin replied to SaneHosting's topic in Hosting solutions
Yes. This is bad. The best of hosting industry at the moment is Vortex. I've not faced any trouble with them.. They do give what they say, it's not like these other companies that offers a bunch of stuff that they cannot do. Example, 24/7 support, really? Vortex's support is very good. They're really there to help you. I'm sorry you had trouble with Vortex. But the thing is that what a hosting company has, the other doesn't have it. I mean, for example, Sane Hosting offer SMS Payment, it's available in my country, which is just wonderful. But Vortex's payments are only via Paypal,you'd need a credit card for that. Meaning, you will have to pay even more for the card's usage than what you pay for the server. Is it a good business? Nah. I say this to encourage hosting companies to improve in the points they're not so strong. -
Sane Hosting - DDoS Protected - Cheap and Reliable
'LinKin replied to SaneHosting's topic in Hosting solutions
Why's your server down? -
Yeah, I was thinking about using .xml I think it's easier, however, I need to begin from zero, learn how to store this data in a .xml file etc.. Also, I think that by using .xml I will be able to move the data from a server to another.
-
Sane Hosting - DDoS Protected - Cheap and Reliable
'LinKin replied to SaneHosting's topic in Hosting solutions
Did you try to open a ticket? -
I don't know how old is Sane-Hosting. I'd like them to tell me since when they're hosting MTA:SA servers. Also, I saw they closed once due to a DDoS attack, it involved a kid and his father. More info? Because these hosting companies should be very strong against DDoS. I don't know how serious Sane-Hosting are. Nowadays you see a good number of "companies" who offer MTA:SA servers, low prices, great offers, free trials. But this is just very fantastic to be true. After less than a week you start to have troubles, later on, your server(s) down, and at the end, your money wasted. Is Sane-Hosting reliable?
-
Hello, In MTA there are some controls called 'binds' which u can modify. I was wondering, is it possible to make a script that gets the player's binds? Is it possible to change a client's binds? In summary, is it possible to "play" with a client's binds?
-
Thanks both for ur info
-
Hello, Most of us compile client scripts for protecting them. But I've found this function which apparently deletes the file downloaded in MTA:SA/mods/deathmatch/resources from each client. fileDelete ("script.lua") Am I right? Also, I've seen in meta.xml a new attribute ("cache="false") This one is new for me, I'm not sure what it does.
-
Can someone provide an example?
-
Yeah, but does someone know where they are? Because I couldn't find it.. I was using "countdown_" as key-word to search in all of race's default scripts. But didn't find anything... I don't know where exactly they define the size of countdown images
-
Hello, I've seen some scripts that stores a player's nicks based on their serial. I've seen they use something with SQL. But I don't have much experience on this. Also, I took a look at this "epic" resource: https://community.multitheftauto.com/in ... ls&id=2764 But found out it doesn't work.. I want to make my own one. Also, if it is possible to 'backup' this information.. So that if I download the resource from the server, and upload it to another server, the information from the 1st server is shown in the 2nd one.
-
Hello, I've done some images for the count down of race.. But, I think somewhere there's a function which is resizing them. I tried to find this, but I did not find anything.... I thought that it was only about making the image bigger, but I was wrong.
-
Hello, I've looked unluckly for a script that allows you to hide absolutely everything from your screen (HUD, Radar, Timelimit, Chatbox, etc..) The gamemode is race, so far I know how to hide chatbox, and radar. But what about the rest Can anyone help?
-
I know MTA has developed something that doesn't allow handling editions. I was told 1.3.4 is more stricted on this topic. On the other hand, Is there a way to compare .dff and .txd files? I explain: Compare a client's .dff with the original .dff file of a certain vehicle
-
Hello, This time I am interested on doing a script which do the following: Replace a specific car's .dff file to the original one. (Only if it's modified by the player). And replace a specific car's handling to the original one. (Only if it's modified by the player). I've seen something related to getVehicleHandling on MTA Wiki. But I don't really know how to work with it.