Jump to content

tosfera

Members
  • Posts

    1,193
  • Joined

  • Last visited

Everything posted by tosfera

  1. If I'm not mistaken, you can only change the collision of an object which as been placed by you. Not by the game. If you want to add collisions to Liberty, you should copy the entire liberty city, and rebuild it somewhere in the air in the same interior/dimension. That will enable your custom collisions. Well.. at least that worked for me with various objects.
  2. To avoid the other damage being cancelled, you can use an additional check; if ( weapon > 46 ) then return; end You can also extend your if-statement; if ( weapon and weapon ~= 0 and weapon < 47 and getTeamName ( getPlayerTeam ( localPlayer ) ) == "PotatoTeam" ) then
  3. If you're able to write a report system with things like this included, you should also be able to remove some of it. This script is most likely not scripted by you. If this resource is from the community, please give us a link. If you're unable to give us a link the scripts are most likely leaked and therefore you'll not receive any support from the MTA community.
  4. You cana chieve this by using the OnClientPlayerDamage. The event returns the following parameters; element attacker, int weapon, int bodypart [, float loss ] all you have to do is create a simple check to see if there is a weapon (weapon id 0 is used for fist damage). addEventHandler ( "onClientPlayerDamage", root, function ( _, weapon ) if ( weapon and weapon ~= 0 and getTeamName ( getPlayerTeam ( localPlayer ) ) == "PotatoTeam" ) then cancelEvent(); end end ); You might have to try and hit a player using a tank, I'm not sure if it returns a weapon. It might return weapon id 255, if that's the case. Then just add a new part to the if-statement; 'and weapon ~= 255'.
  5. Easy thing to resolve the runcode problem; remove runcode from your resources. Also, disable all the commands in the acl.xml for the user 'console' to revoke all it's rights.
  6. tosfera

    Get time

    getRealTime returns the time from the client if it's used client sided, else it'll return the server's time.
  7. tosfera

    math.round

    That's a random number... not rounding a number to an integer.
  8. I see a lot of people saying that 'only rich Tunisians can have Paypal' but why don't you just fake your country... like a lot of people do?
  9. You don't get him Solid? He wants to let people recharge their points and give them their 'coin' ( some weird ass donation garbage I guess... most likely a leaked source or a downloaded one which is not or badly documentated. )
  10. off-topic: Integers used to be 2 bytes in like.. 2010? 2011? But they were changed to 4 byte after because the processors went from 16 bit to 32bit as a min.
  11. tosfera

    Question

    If you're writing your own bullets, ya why not.
  12. Look at the freeroam's files, it has the sh*t for the F1-> map
  13. Well, when the element data changes is very dangerous and will spam your database so bad that your server crashes every time a player does something with friends. I would rather do it when the resource stops and an hourly save.
  14. You've to disable the hud and draw a new one.
  15. Well, currently nothing. I'm just importing an object from GTA and export it, I'm doing nothing to the object. So it should just keep his own textures, right?
  16. Err, I'm trying to export models from 3ds max ( 2015 version ) with those kam's scripts but my textures keep getting messed up even when I just import and export a default object. The textures are starting to mess around and do their own thing without me even touching them. Anyone has an idea what it could be? All I can see is that it's missing some files; http://puu.sh/ekT73/d7b3c14546.png Could that be the major b*tch?
  17. Some players reported the same thing to my ass, it always happens when they go afk in an interior for a long time where the computer goes into a standby mode. so it should be that problem ya, but it's weird that my MTA also crashed after leaving the interior.
  18. So, I didn't turn off my laptop while going to bed and 9 hours after I came back to see this; My laptop doesn't have a standby mode active or anything like that. It did have a HDMI cable connected to a second monitor where MTA is running. Any idea what it could possibly be? I guess restarting MTA would do but I don't think this should happen by default. I moved out of an interior and also received this crash:
  19. There are indeed people scripting for a living but we don't call it scripting anymore. It's a bit more advanced, we call it programming. I'm doing this for a living, and for some extra fun I'm doing some scripting. Not to get paid big time, I enjoy making people happy. If you're thinking about taking scripting as a serious job, make sure you write your scripts solid, fast and exactly how the customer wants it.
  20. tosfera

    SAFEZONE

    rename your folder to something else, I guess you unzipped a .rar or .zip and didn't remove one of them.
  21. Is there any website where we can see those stats our self? Or are these taken as graphs from incoming connections at the master server?
  22. You'll have to edit the model indeed. There is no way that you, without MTA modifications, can change the size of a string accepted as the plate's text. Why do you want it to be that big anyway?
  23. Attach an object to the character's head or get the position of the ped's bone in the head and use that as your center.
  24. It is currently saving for all the accounts, nothing wrong with this. And I can't see this "gabriell" anywhere haha.
  25. Maybe ask the official scripter to fix them, if he refuses then do it yourself? ^^
×
×
  • Create New...