Jump to content

proracer

Members
  • Posts

    499
  • Joined

  • Last visited

Everything posted by proracer

  1. Enjoy! (Sorry for the bad edit in the second stunt.)
  2. Yes, I know.Maybe I will make some more harder stunts soon, still thanks guys! (500th post!! )
  3. Hello guys, I always liked hydra so I made video of some stunts (maybe I make more soon) I know some are very easy, but I hope you enjoy (sorry for shitty editing, I'm just a beginner).
  4. You're just too lame too stop the fight.Be more mature and let's deal with it like a man. (You have whole shc server, yea of course...)
  5. Damn, you are so hilarious!! 150 mb lol! Go publish it if you want. Btw, DDC has nothing about this - it's not of your business.
  6. Example: player = '#ffff00proracer' outputChatBox ( player:gsub ( '#%x%x%x%x%x%x', '' ) )
  7. Here I created player id for the scoreboard, I tested it and should work: addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) for i,v in ipairs ( getElementsByType ( 'player' ) ) do setElementData ( v, 'data.playerID', i ) end exports.scoreboard:scoreboardAddColumn ( 'data.playerID', 70, 'ID' ) end )
  8. Use Notepad++: http://notepad-plus-plus.org/
  9. Try this: function playerContinue ( ) local playersRed = countPlayersInTeam ( teamRed ) local playersBlue = countPlayersInTeam ( teamBlue ) for i,v in ipairs ( getElementsByType ( 'player' ) ) do if playersRed == playersBlue then setPlayerTeam ( v, teamRed ) elseif playersRed > playersBlue then setPlayerTeam ( v, teamBlue ) elseif playersRed < playersBlue then setPlayerTeam ( v, teamRed ) end end end addEvent ( "OnPlayerPressingButton", true ) addEventHandler ( "OnPlayerPressingButton", getRootElement(), playerContinue )
  10. function pest (sourcePlayer, command, who) local targetPlayer = getPlayerFromName ( who ) if ( targetPlayer ) then local x,y,z = getElementPosition (targetPlayer) local xp,yp,zp = getElementRotation ( targetPlayer ) createObject ( 970, x+3, y+3, z, xp, yp, 0 ) end end addCommandHandler ( "pest", pest )
  11. Also I sometimes don't understand this, I saw many people use ipairs and with your example I think pairs is the best way. What is the reason?
  12. ipairs can be used to go trough string indexes also if I'm not wrong...
  13. Yes, also you can download Lua 5.1 for Windows and use the Lua Command line to help you testing stuff you wanna test quickly.
  14. server/mods/deathmatch/registry.db (You can open it with any SQLite Viewer.)
  15. proracer

    findPlayer

    I know him he is my friend, he wanted to use the partial name for a player.. I didn't said you're code is wrong, on the contrary it's good. Like for example: /warn Sol - (instead of Solidsnake14) which must be used with getPlayerFromName
  16. proracer

    findPlayer

    I know this script, its used to get partial name of a player... try briefly looking into ban/kick system.It has a partial name for target player afaik.
  17. The error is probably because you're script is serverside and it must be clientside...
  18. There was an example here: https://wiki.multitheftauto.com/wiki/OnPlayerWasted (2nd example) addEventHandler( "onPlayerWasted", getRootElement( ), function() setTimer( spawnPlayer, 2000, 1, source, 0, 0, 3 ) end )
  19. Yes for example: addEventHandler ( 'onPlayerJoin', root, function ( ) outputChatBox ( getPlayerName(source):gsub('#%x%x%x%x%x%x', ''), root, 255, 128, 0 ) end )
  20. Just an example: getPlayerName(player):gsub('#%x%x%x%x%x%x', '')
  21. Did you try this: executeSQLUpdate ( 'TestTable', "Value = 'Amoxicilin tablet\ 's'" )
  22. https://wiki.multitheftauto.com/wiki/IsGuestAccount
  23. Yes, sorry I'm just too tired now and I spotted my problem and was too tired to solve it so I deleted it, maybe someone else can help...
  24. This is just ridicolous.We need loadPlayerData function and savePlayerData function. Did you mean getElementData and setElementData?
  25. Can you please post just the important part of the code what it doesn't work?
×
×
  • Create New...