Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. As I said before, use this: addEventHandler("onPlayerWasted",getRootElement(),
  2. Try using this: addEventHandler("onPlayerWasted",getRootElement(),
  3. function start () executeSQLCreateTable("RaceStats", "serial STRING, RaceWins INT, RaceLoses INT") end
  4. Make sure you logged in when you do it. And if that doesnt work, put your save skin script.
  5. Try this: function onPlayerDeath( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) then local playerskin = getAccountData ( playeraccount, "skin" ) if ( playerskin ) then setPedSkin ( source, playerskin ) end end end addEventHandler ( "onPlayerWasted", getRootElement ( ), onPlayerDeath )
  6. Why don't you just make it so in the gui buttons you change the there?
  7. setPlayerTeam(player, getTeamFromName("Xeno 1")) setPlayerTeam(player, getTeamFromName("Xeno 2")) But these are server sided events, so you going to need a trigger in your client script. EDIT: TAPL beat me too it D:
  8. If you want the functions, then here: triggerServerEvent setPlayerTeam getTeamFromName OnClientGUIClick And I gave you the function in my first post -.-
  9. -.- You mean you want Solidsnake to do it FOR you?
  10. Xeno

    How to do........

    Mine should work with all resolutions.
  11. Xeno

    How to do........

    Im not sure if it will work with images, but this is what I use for GUI's: sx,sy = guiGetScreenSize() guiCreateWindow(0.700*sx,0.230*sy,0.250*sx,0.550*sy,"window",false) PS: I see your a maggot (Slipknot fan..)
  12. Trigger a server side event and use this function : function setTeam(player) setPlayerTeam(player, getTeamFromName("Team1")) end
  13. You need to save the skin on death
  14. Xeno

    Saving Memo Data

    LUA is simple to understand, you only gotta figure it out... I'm a noob though, my brain capacity to understand these things is 0.
  15. Xeno

    Saving Memo Data

    Thanks. And how would I move data from one memo into another memo...? So I have one memo and say on guiClick I would want the memo text to be implanted into another memo.
  16. How would I save memo data for the next time a player joined the server? So say if a check box was ticked, the data would save for the next time the player logged on guiCreateMemo(17,79,414,246,"",false,Window) local checkedBox = guiCreateCheckBox(20,30,150,20,"Checked checkbox",true,false,guiWindow) Please could you help me?
  17. You can use this compiler: http://www.mediafire.com/?5et60em7mog3yms Or, there is another way, it pretty much deletes the client sided script when the player joins, so he joins, downloads, and then it is deleted afterward so they cant use it. Although it seems like a good idea, there are some downsides too it, because it deletes the file, the person joining will have to download all the files again when he joins. If you want to use this method place this line at the end of your client sided script: fileDelete("script_name.lua")
  18. Xeno

    Help .

    Try false and see what that does.
  19. Xeno

    Help pls.

    function open() guiSetVisible(GUIEditor_Window[1] , true) showCursor(true) end addCommandHandler("open", open) That will make it so if you type /open it will open the GUI. Edit: Just saying, no one is going to do the other stuff for you, its just too much. If your looking at making an RPG server, I would seriously considering paying for a scripter, or learning to write LUA yourself.
  20. It is included on the wiki: https://wiki.multitheftauto.com/wiki/DestroyElement
  21. Xeno

    J-jobs

    Press M and right click on the man.
  22. You spamming this section with requests, and I dont think you understand but this is a HELP section, not a request a resource section. If you want resources head over to the MTA Community where you can find resources, or I would suggest you start to learn to write LUA. https://community.multitheftauto.com/index.php?p=resources&s=details&id=3251 Al3grab jail system
×
×
  • Create New...