Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. OK. Also, updated description with a link to video.
  2. First of all, I'd recommend you to check out GUI section on the wiki or my GUI classes and make send email form. Secondly, it means that your 'playerTo' variable is nil and you can't concatenate (join) it with string.Thirdly, How do you know? Make sure all required parameters are passed and that they are the types of data that is required, that is, where string shoulr be string make sure it's string not something else. That means, debug the script.Fourthly, visit wiki and see what parameters are passed to function called by commands (addCommandHandler). Last but not latest. What is source in function checkmail? source is not player! It's variable passed to function triggered by events! Also, the MOST important thing, DO NOT USE source AS AN ARGUMENT IN FUNCTIONS!
  3. Who asks you to upload server-side scripts?
  4. TBH, I don't see the point in this script.
  5. No it's not possible and will not be possible because that's how the game is made. It requires changing models and pedestrians weren't made the way CJ is. I would be really surprised if MTA will make it possible.
  6. I'd like you to take a look at this: https://forum.multitheftauto.com/viewtop ... 91&t=24122 You may find it useful
  7. Try to debug it like: outputChatBox( tostring( guiSetVisible(RegisOrLoginImage, false) ) ); To check if guiSetVisible will return true.
  8. Why don't you try to debug your code or use events for this. I'd recommend you use onClientResourceStart to create that image due to some issues with GUI elements created not in event (eg. simple 2 lines like yours)... They don't always/usually function when are created like you did.
  9. If what I posted isn't what you're looking for then I can't help you because I don't understand your problem... I'm sorry but what I read in your topic is same as what I read here and that's exactly how I understood your problem... Talidan gave you another possible answer in his first reply about attachElementToElement. Maybe painting in Paint will help, if not, well, good luck then...
  10. No, its not strange. Yours involves much more complicated math. If anyone knew it properly perhaps they'd help. How is it more complicated? Perhaps I don't understand the complexity of it. What level of maths are we talking A Level? Degree? Explain a bit more. I don't really know what you're trying to do but if I understand well enough, you want to set object's position but the "starting point" is eg. player's position? So, let's say, when you create object its "starting point" is center of San Andreas, right? And you want that point to be position of player/vehicle? If that's what you want then level of maths required for this is E you only need to know what "+" does. function setObjectPositionRelatively( object, relatedTo, x, y, z ) local xx, yy, zz = getElementPosition( relatedTo ); setElementPosition( object, xx + x, yy + y, zz + z ); end -- and client-side example of use: obj = createObject( 1111, 0, 0, 0 ); setObjectPositionRelatively( obj, getLocalPlayer( ), 0, 0, 10 ); This will set object 10 units above player. Doesn't matter where player is. I didn't really understand your problem so I can't help you... try to explain a bit more next time
  11. In what relative way?
  12. Try this function: http://50p.pastebin.com/f419f3719 The code would be like this function pickup(player) local _,_,z = getElementPosition(player) local x, y = getXYInFrontOfPlayer( player, 5.0 ) -- 5.0 is distance in front of player local ang = getPlayerRotation(player) createPickup(x, y, z, 0, 100) end addCommandHandler( "heal", pickup ) PS: Don't make 2 same topics, please.
  13. Take a look here: https://community.multitheftauto.com/index.php?p= ... ils&id=234
  14. It should stay as It reloads the old texture when resource stops and it should replace it when resource starts (at least in your case). - Is the script added in meta.xml as client-side script? - Add some outputChatBox/DebugString to find out if the event is triggered.
  15. The wiki is an online encyclopedia where everyone can modify pages. http://development.mtasa.com/index.php?title=Main_Page Use it as usually as you need scripting help. It tells you what functions you can use in your scripts. Here is a "Programming in Lua" online book: http://www.lua.org/pil/index.html read this to learn Lua syntax.
  16. I still don't know whether it's "/votekick" or "/votekick " because that's HUGE difference. If you do VoteKick..username and VoteKick = "/votekick" then it will be "/votekickSomename" which is completely different command. Pay attention to your scripts and even what I'm asking you for since repeating the same question is just wasting time for me You shouldn't concatenate command with username anyway. Just tend to read wiki and you'll have answers to your questions faster then waiting for us to answer your questions. I'm not going to quote wiki anymore... just get used to wiki and add it to your favourites (bookmarks). We are giving answers to all of the scripting questions from wiki.
  17. What VoteKick is? Is it "/votekick" or "/votekick "? Or maybe something else?
  18. First of all, use code tag to make the script easier to read for us. Secondly, make it server-side. Thirdly, use "changeGamemode" (exported function from mapmanager resource).
  19. /register and /login are built-in commands. You don't have to make them
  20. 50p

    Superfluous work

    You can use my GUI Classes and use button:AddOnClick( func ). Just take a look into the classes and you may find the code more efficient.
  21. You should be more than happy... You can not replace objects/vehicles in SA-MP...
  22. No, it's not better because it will never work! You can not change textures of HUD. You can only change textures of objects or vehicles.
  23. WHAT THE FUCK!? I can not handle it anymore. Thanks. I wish you best in the world of scripting!
  24. Where did you create the label? And what the hell is this?
  25. Do you think anyone wants to know where you got them from? You have them all in .txd files which are in gta3.img. You can even have them as .png which supports alpha channels and you don't have to edit them in photoshop... Anyway, get to scripting and tell us any problems you encounter.
×
×
  • Create New...