-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
Antiblur, godmode, warp command and one-tap nitrous scripts?
50p replied to Azortharion's topic in Scripting
https://community.multitheftauto.com/index.php?p= ... ils&id=427 -
You can draw semi-transparend rectangle on top of the image and it would brighten them up, but it's better to draw images as they are. You can try this: http://jancres.hubpages.com/hub/Perform ... -with-Gimp I have never used GIMP, not even downloaded it once but you can give it a go.
-
Triple-post again and we will take actions. Friendly fire means shooting team members. You can't simply disable friendly fire for members of 2 teams because members of other team are not "friends" (where the name comes from "friendly fire"). You cancel onClientPlayerDamage, why would you expect to receive any damage including flower damage? Think about it.
-
Check your file doesn't have an error: http://www.w3schools.com/xml/xml_validator.asp Like you said "i can't load xml file after i edited data in it".
-
Go to about 3:50 to see the item chooser, it shows the model and its texture name in the table. You can find models by names (you know the name of the model without the extension ".dff"). Once you get the texture name, open IMG Tool or Spark (which I prefer) and just search for that texture.
-
First advice, don't name variables with the same names (eg. nearbyZombies). Also, try to avoid naming parameters with predefined variable names like source, root, etc. since the function called from an event will also pass the hidden source variable. Before you set element's health, check if the element is not "you".
-
Are you sure it's in gta3.img? I can't find it myself. Maybe you've installed some mod that added this file. Also, why would you need to export a model from gta3.img and then replace the in-game model with this one? Try MEd, you can find textures by models or models by textures. If you don't want to use MEd then you can go hardcore and find the model in one of the .ide files which will also tell you the texture name.
-
@[s.K] You're either 6-year-old kid trying to achieve something or you're simply acting silly and hoping someone will help you. If you don't want to learn and thinking we'll make a complete script for you, don't waste our time because no one will!
-
Added a small stand-alone application which allows you to create sprite sheets from GIFs. Check the first post.
-
It simply looks like a compiled Lua script. You can't easily edit this script. It's been compiled for a reason.
-
These zombies script is not a gamemode with objectives. It's an addon for your server so you can add zombies. All your ideas should be scripted separately.
-
turfShapes = { }; -- make it global - outside functions ... turfShapes[ CreateColid ] = 1; -- once cuboid is created, add it to the turfs table, having element as table index is easier for later use in if statements ... if ( turfShapes[ source ] ) then -- in your OnPlayerOnColHit to check if the hit shape is a a turf col shape ...
-
CreateColid is a local variable in OnresourceOpen function in a loop. So, if( source == CreateColid) in OnPlayerOnColHit will never be true.
-
That would work as long as the server is running. Once the server stops, the countdownTable would be empty. It's best to store timestamp of the "start" in player's account/database (wherever you prefer) and then check if "current timestamp" - "start timestamp" is greater than 6hrs. This will work even if the server restarts. Can't think of any simpler way.
-
To my knowledge the lower the number the better sync but you have to remember the more information your server has to sync the more time clients need to receive them. Default value is fine so you can leave it unchanged unless you have a private or LAN server where you won't have many players and want quicker sync then you can set it to 50.
-
Thanks guys. I'd like to see people using it on their servers. Sprite animation has been used in games for very long time. Most of the time it's used for 2D animations. Watch this video and hopefully you'll understand better
-
Why do you set a timer with infinite number of executes? This is the reason why you get them all messages, first time the object gets deleted and then each destroyElement call will fail because myEffect is not a valid object any more. Check the setTimer parameters again.
-
return stops the function and returns a value or multiple values, break, breaks the loop but doesn't stop a function function aFunc( stopAt ) local a; for i = 1, 10 do if i == stopAt then a = i; break; -- stops the loop but keeps executing rest of the function end end -- break hits end of the loop -- do something else here return a; end
-
Info: Additional tool: Gif 2 Sprite is a tool that will let you create a sprite sheets from GIFs, so you can create animations for your server even easier! Have a look yourself: Download: SpriteAnim library: https://community.multitheftauto.com/index.php?p= ... ls&id=5832 Gif 2 Sprite tool: http://scripteditor.beta.mtasa.com/files/Gif2Sprite.zip
-
If SA-MP can make HTTP requests (like callRemote in MTA) then it is possible.
-
I can't help you with this now. I hope someone who's better at making proper edf files will help you out but try not to multi post. You can also speak to us on IRC, I'm sure there will be someone who can help you out.
