Jump to content

'LinKin

Members
  • Posts

    636
  • Joined

  • Last visited

Everything posted by 'LinKin

  1. In this case, the resource will NOT have ACL rights.
  2. Hello, For kicking players, the script needs to have ACL rights. If the resource doesn't have ACL rights, it'll never work. But I was wondering if it is possible to make online server admins perform some commands such as /kick Thanks.
  3. attachElements That's for the siren. But for the text I don't know
  4. 'LinKin

    stopResource

    You are right, but I didn't mean to stop another resource. I meant to stop the same resource where I put that code.
  5. 'LinKin

    stopResource

    Probably call the admin resource.. I don't know.
  6. 'LinKin

    stopResource

    Hello, I've this inside a script. stopResource(getThisResource()) The debug says @ access Denied. I guess because it needs Admin Rights to execute stopResource. But, is there another way I could stop the resource without having it added to the ACL? Thanks
  7. 'LinKin

    Settings

    Hello, I have two settings in meta: <setting name="*displayTeamMessages" friendlyname="Add/Remove Team Messages" value="true" accept="true,false" desc="Displays Add/Remove Team Message in the chat." /> <setting name="*errorMsgColor" friendlyname="Error Messages Color" value="#FF0000" accept="Hex Color" desc="The color of the messages when an error occurs." /> When I change a setting via admin panel. It is changed to a string like this: [ "theValueInsterted" ] So for example if I change the setting displayTeamMessages to false, it would take the form [ "false" ] And if I change errorMsgColor it would take the form [ "#FF0000" ] How can I remove this? I just want to take the values like 'true' 'false' '#FF0000'. Without those [ " " ] symbols surrounding the value.. The only solution I see now is using string.gsub. Thanks. EDIT: fromJSON does the work.
  8. As far as I know, VortexServers were working on that feature. They told me some months ago. I don't know if they already have it. On the other hand, I know that Sane Hosting accepts payments via SMS. And I know that Pakistan is available to pay through this method. But one thing is true, it doesn't really worth it to pay via SMS because you will end up paying more than the server's cost to the company which proccesses the SMS payment. (Ex: Paygol). I also know delux-host, I think they have the card's payment option. But it's a little bit more expensive. Just take a look at the Hosters (http://www.multitheftauto.com/hosters/) by yourself. You can also contact them on their website and ask them what you want.
  9. Hello, This as an example, <setting name="*displayWinnerMessages" friendlyname="Show the winner of the match" value="true" accept="true,false" desc="Displays the final winner of the match in the chat." /> the values accepted are true or false. How can I edit this when working with hex codes? <setting name="*errorMsgColor" friendlyname="Error Messages Color" value="#FF0000" accept="[b]IDK What to put here[/b]" desc="Hex Color" />
  10. Ah. thanks for clearing the doubt IIYAMA
  11. I mean, to automatically place the cursor into the edit box so that I can type in it
  12. But not focus the edit box
  13. Hello, I've this on meta: <setting name="@displayWinnerMessages" friendlyname="Show the winner of the match" value="true" accept="true,false" desc="Displays the final winner of the match in the chat." /> and serverside I have this local showFinalWinner = get("displayWinnerMessages") addEvent ("onSettingChange") addEventHandler("onSettingChange", resourceRoot, function(theSetting, oldValue, newValue, thePlayer) if theSetting == "displayWinnerMessages" then outputChatBox(theSetting.." has been changed to "..newValue, thePlayer) end end) But when I go to Admin Panel>myResource>Settings I don't see any setting to change there.. It's empty EDIT: When I use * before the setting's name. It works. But isn't it supposed that it must work with @ too? So that only that resource can modify it
  14. Hello, Is it possible to make a drag and drop between two (2) grid lists? Also, have you seen that in notepad++ you can click on a - button which is on the left side of the line? For example you have function test() --code end At the left side of the line 'function test()' there's a - button, when you click it. the function get 'minimized' Do you know how to make these 'blocks' with some code or smth? Another thing. Can I focus on an editBox? For example when I double-click something, it automatically places the cursor into an editBox. Thanks.
  15. Hello, I've a table like this: g_Window.labels = { label1 = guiCreateLabel(20, 60, 80, 20, "All Teams", false, g_Window.tabPanel.tab1), label2 = guiCreateLabel(20, 50, 30, 20, "Added Teams", false, g_Window.tabPanel.tab1) } Then I use this function to color them function toColorLabels() for _, theLabel in ipairs(g_Window.labels) do guiLabelSetColor(theLabel, 226, 172, 42) end end But it wasn't not working.. Then I changed the for loop to: for _,theLabel in pairs(g_Window.labels) (Notice I changed 'ipairs' to 'pairs') And then it worked. What's the difference between ipairs and pairs? Thanks.
  16. www.sane-hosting.com It's good too, also cheaper than Vortex and for me it's the same service.
  17. I hope it's like that Isn't there a way to make it like this but on the current MTA version?
  18. Hello, I've seen some posts talking about clients downloading stuff.. As I posted some time ago, I'm using fetchRemote server-side to download a char and then send it to the client. But, when more players requests a chart, the server starts to lag. (Because it's downloading the chars (which are different almost always)) Now, I've seen/readed about downloadFile coming with MTA 1.4 (If I'm not wrong). Would this function cause lag to the server? I rather that it causes lag to the client instead of causing lag to the whole server.
  19. 'LinKin

    Radar

    Hi, You know that there are some scripts that change the default radar. There's a special one which I like but the only thing I don't like about it are blips. So I was thinking about importing default radar's blips into this new radar. I see that the resource has some .png images. blipup.png blipdown.png blip.png those are the ones I want to change. But I don't know where the default radar's .png files are. Any ideas? Thanks
  20. No.. I've tested this script and it works 100%.... If I change my car's color the rims color changes too
  21. Hello, I'm using this resource: https://community.multitheftauto.com/in ... ls&id=7896 It changes the wheels' dffs but also, it set the colour of the rims the same as the car's colour.. How?! I tried to find the answer inside the script but I only see that the guy is replacing the custom dffs. I didnt see anything related to the color of the rims.. Do you know how is that working? Thanks.
  22. Ok I've installed another server with another dir. By default: These were the server and http ports 22003 22005 Then, as you told me to change the port, I changed it to 22004 and tried to start the server. But it didn't work. It said something about the HTTP port. Then I went back to mta-server.conf and changed the http port to 22004 (The same as server-port) And it did work. Everything is fine now. But I got one question. If for this 2nd server installed in the VPS I had to change server and http port and also set them both to 22004. Why am I running the 1st server which has severport 22003 and HTTP port 22005 ?
×
×
  • Create New...