
proracer
Members-
Posts
499 -
Joined
-
Last visited
Everything posted by proracer
-
Enjoy! (Sorry for the bad edit in the second stunt.)
-
Yes, I know.Maybe I will make some more harder stunts soon, still thanks guys! (500th post!! )
-
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).
-
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...)
-
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.
-
Example: player = '#ffff00proracer' outputChatBox ( player:gsub ( '#%x%x%x%x%x%x', '' ) )
-
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 )
-
Use Notepad++: http://notepad-plus-plus.org/
-
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 )
-
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 )
-
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?
-
ipairs can be used to go trough string indexes also if I'm not wrong...
-
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.
-
server/mods/deathmatch/registry.db (You can open it with any SQLite Viewer.)
-
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
-
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.
-
The error is probably because you're script is serverside and it must be clientside...
-
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 )
-
Yes for example: addEventHandler ( 'onPlayerJoin', root, function ( ) outputChatBox ( getPlayerName(source):gsub('#%x%x%x%x%x%x', ''), root, 255, 128, 0 ) end )
-
Just an example: getPlayerName(player):gsub('#%x%x%x%x%x%x', '')
-
Did you try this: executeSQLUpdate ( 'TestTable', "Value = 'Amoxicilin tablet\ 's'" )
-
https://wiki.multitheftauto.com/wiki/IsGuestAccount
-
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...
-
This is just ridicolous.We need loadPlayerData function and savePlayerData function. Did you mean getElementData and setElementData?
-
Can you please post just the important part of the code what it doesn't work?