Jump to content

tosfera

Members
  • Posts

    1,193
  • Joined

  • Last visited

Everything posted by tosfera

  1. You can't just roam around here and request things, Marty. I gave you something for the chat already, use that to modify and you'll be done within minutes.
  2. First of all; it's a server sided script. No need to do this client sided, there's actually no easy way to do this. You'll have to set data if someone is staff or not and all that crap. To make it easy, just create a loop trough all the players and see if they are in the ACL group "staff", then output the message. To use the command, they should also be in the group. A small example; addCommandHandler ( "staffchat", fuction ( thePlayer, _, ... ) if ( isObjectInACLGroup ( thePlayer, "staff" ) ) then for i, p in ipairs ( getElementsByType ( "player" ) ) do if ( isObjectInACLGroup ( p, "staff" ) ) then outputChatBox ( "[staff] ".. getPlayerName ( p ) ..": ".. table.concat({...}, " "), p, 0, 0, 120 ) end end end end )
  3. Why don't you cancel the damage client sided? So you don't have a loop running 10 times a second...
  4. tosfera

    Small help

    You should add a check above your loop, because theMeta can be false. If it's false, it won't do anything. Make a small check like this; if ( not theMeta ) then return end It should skip any files which failed to load.
  5. Alright, if you don't want a lot of bullshit to read... don't open the spoiler ( moderators, don't open the spoiler... I don't want to receive a warning for bad language. <3 ) in short; their servers are fine, not perfect. Their service center sucks harder than a girl while giving you a ... #cough.
  6. tosfera

    Relative

    Yes, yes you can. just use math.
  7. You can't destroy a timer, you have to use killTimer to make it stop.
  8. What you can do, is try to fetch the google translate page ( or write a php script with an API if there is one ) and let it detect if it's English or not. Keep in mind that typos will be blocked too. so people with bad English won't be able to talk either!
  9. Actually that code is what you want, although it's a bit sloppy. Try using this, it should work. addEventHandler ( "onPlayerChat", root, function ( message ) for i=1, string.len ( message ) do local n = message:sub ( i, i ) if ( n:byte ( ) < 32 or n:byte ( ) > 127 ) then cancelEvent ( ) outputChatBox ( "English characters only...", source, 255, 0, 0 ) return; end end end ) In The Netherlands ( so Dutch ) we also use English letters... it's quite hard to actually make a script like that haha!
  10. offtopic; If you're using 800x600, you should probably get an upgrade. I'm supporting 800x600 with alot of pain in my hearth, why the hell, do you want a resolution so small in 2014. But still, alot of people are using it!
  11. The thing I did to be honest, is not using any value at all like AbaZaSiRiN00 did. I'm just using calculations for every device; local x, y = guiGetScreenSize() dxDrawText ( 'Some random text', x * 0.4, y * 0.2, x * 0.6, y * 0.3, tocolor ( 255, 255, 255, 255 ), 1, "default", "center", "top" ) I'm not having trouble so far with any resolution.
  12. You're trying to create a Roleplay script without knowing basic things like this ...? Maybe it's a good thing to get to know the basics before you take a big step and move to a RP script.
  13. I'll help this guy on skype.
  14. I think you get it all wrong, it's something that has been made by GTA ( or MTA, not sure. I guess they didn't change this! ). The models of a vehicle isn't getting touched by an element ( not the 'bounding box' ). The thing that is being hit is the center of a vehicle. The player is there, so once the player hits the vehicle hits the colshape. There are some work-arounds for that. But tbh, it's not worth to make. Takes quite some time and is overrated. What are you trying to do anyway?
  15. Do you have proof of that, any link where I can get it with his approval?
  16. everyone have a way so i prefer my way That's true, but I did like to start a discussion with you about this. If you don't mind, feel free to send me a PM if you're willing to start this discussion.
  17. You're still not allowed to use leaked files, it's protected by MTA and therefore also against the rules.
  18. local vehicleTable = {} table.insert ( vehicleTable, createVehicle ( model, x, y, z ) ) That should get you started, but why do you want to store them in a table... would be easier to do with a small database.
  19. I'm sorry that I don't have an answer for you, but that's epic. To be honest, I think this isn't one animation. Guess it are 2 different animations while they are attached to each other. Because the arms aren't rigs so they should be attached to each other which will look ugly. One player will lose control...
  20. Can you create a small script of this? I'll try to write one like you just explained to us and see if something happens.
  21. tosfera

    MTA Fail to load

    it crashes after saying; stop playing with yourself. And hides, right? I had the same thing, hope it's not MTA. else I just reïnstalled my pc for nothing. ^^"
  22. Your mistake is here: for f, u in pairs(bindKeyTable) do f, u indicates that it's an ipairs which is not the case.
  23. tosfera

    MTA Fail to load

    Are you using the latest update from windows 8.1? Gl reïnstalling or recovering your pc to the point before the update. I'm doing the same, microsoft messed up... again.
  24. Found it already, somehow my installation from Samsung messed up my Windows update, they both had to be redone separately... thanks anyway! edit; well, my other games work. I'm now getting something about 0x6df2fa83 pointing to memmory 0x6aec8b59, he couldn't write there or so. content of the report.txt:
  25. Hey hey, I just updated my laptop to the latest version of windows 8.1 and some Samsung updates ( including my chipset, graphic card etc ) but now MTA won't startup anymore. I got a mtadiag and a processmonitor file right here ; mtadiag; http://pastebin.mtasa.com/190698197 processmonitor; it's 64mb, couldn't upload it to the http://upload.mtasa.com/. Send me a pm if you want the uppit link. Yes, I am aware of the fact that I'm missing audio files, never had them. It always worked without. Thanks edit; Right, just noticed that I can't start any game... so this just became non-related to MTA.
×
×
  • Create New...