Jump to content

xXMADEXx

Members
  • Posts

    2,718
  • Joined

  • Last visited

Everything posted by xXMADEXx

  1. If you want to set a world object non-breakable then you'll need to delete it using removeWorldModel and map it back.
  2. Thats because your setting the marker interior to 900 and the player to 901...
  3. Eh animations are to difficult to do... And thats not a bug. It won't show the same message twice. I did it to prevent a bug that would have occurred. Thanks
  4. xXMADEXx

    Login Handler

    for username and password your using guiGetText correct? If so then use "outputChatBox ( username.." "..password )" on the server side.
  5. no, dxDrawText returns true/false. You need to make the text into a variable.
  6. xXMADEXx

    Login Handler

    How did you trigger it from the client side? because, the error is saying that username isn't defined.
  7. xXMADEXx

    Login Handler

    Post your whole script.
  8. We apologize, but we don't give any free servers anymore, you may get a free server for 48hrs tho! oh, woops didn't see that.
  9. Well, It can be in-game and in the web. I dont really care ;p Its sorta impossible to make it IG, and why not just use Filezilla?
  10. For custom objects.. So say you created an object and it can break when someone hits it then you would put setObjectBreakable ( varible, false ) and then it wouldn't break when someone hits it.. Example: object = createObject ( 980, 0, 0, 10 ) -- I know objct 980 isn't breakable but idk what one is setObjectBreakable ( object, false )
  11. You can, but you need to define it in a variable.
  12. what? Try this: function WeaponPoints() local WeaponPoints = getPedStat( localPlayer, 69 ) guiSetText( GUIEditor.label[2],"Points: "..WeaponPoints ) end addEventHandler( "onClientRender", root, WeaponPoints ) addEventHandler( "onClientRender",root, function() local skills = guiGetText(GUIEditor.label[2]) if skills then local Point = tonumber(skills) if Point == 100 then guiSetText (GUIEditor.label[3],"Level: 1") end end end )
  13. Arguments for outputChatBox are different on client side, local myMarker = createMarker ( -710.25555419922, 962.29443359375, 12.410507202148, "cylinder", 1.5, 255, 0, 0, 255 ) addEventHandler ( "onClientMarkerHit", myMarker, function ( p ) if ( p == localPlayer ) then outputChatBox ( " hi " .. getPlayerName(p), 100, 100, 100, true ) end end)
  14. Version 1.3: Changelog: - Added HEX color code support - Added a optional time argument Syntax (server) bool sendClientMessage ( string message, player thePlayer [, int r=255, int g=255, int b=255, bool topBar=true, int time=8 ] ) [b]Required Arguments[/b] message: The text that will be applied to the bar. thePlayer: The player that the message will be sent to (use root for all) [b]Optional Arguments[/b] r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of greeen you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) topBar: If set to true, then the message will send to the top bar, otherwise to the bottom bar time: The time the message will stay on the screen [b](unless the number of messages hits the maximum) (in seconds)[/b] Syntax (client) bool sendClientMessage ( string message [, int r=255, int g=255, int b=255, bool topBar=true, int time=8 ] ) [b]Required Arguments[/b] message: The text that will be applied to the bar. [b]Optional Arguments[/b] r: The amount of red you want in the mixture of RGB (0-255 is valid) g: The amount of greeen you want in the mixture of RGB (0-255 is valid) b: The amount of blue you want in the mixture of RGB (0-255 is valid) topBar: If set to true, then the message will send to the top bar, otherwise to the bottom bar time: The time the message will stay on the screen [b](unless the number of messages hits the maximum) (in seconds)[/b] Examples: -- Example 1: addEventHandler ( "onPlayerQuit", root, function ( ) exports["TopBarChat"]:sendClientMessage ( getPlayerName ( source ).." has left the server.", root, 255, 100, 100, true, 8 ) end ) -- Example 2: addEventHandler ( "onPlayerJoin", root, function ( ) exports["TopBarChat"]:sendClientMessage ( getPlayerName ( source ).." has connected to the server!", root, 255, 100, 100, false, 10 ) end ) I am still taking suggestions. Next version (if there is one) will be the last, unless a bug is found.
  15. xXMADEXx

    Blip

    ( ( Not Tested ) ) local blip = { } addEventHandler ( "onPlayerSpawn", root, function ( ) if ( not isElement ( blip [ source ] ) ) then blip [ source ] = createBlipAttachedTo ( source ) end local theTeam = getPlayerTeam ( source ) if ( not theTeam ) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( source, r, g, b ) setBlipColor ( blip [ source ], r, g, b, 255 ) end ) addEventHandler ( "onResourceStart", resourceRoot, function () for k, v in ipairs ( getElementsByType("player") ) do if ( not isElement ( blip [ v ] ) ) then blip [ v ] = createBlipAttachedTo ( v ) end local theTeam = getPlayerTeam ( v ) if (not theTeam) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( v, r, g, b ) setBlipColor ( blip [ v ], r, g, b, 255 ) end end ) function destroyPlayerBlip( ) if isElement ( blip [ source ] ) then destroyElement ( blip [ source ] ) end end addEventHandler ( "onPlayerQuit", root, destroyPlayerBlip ) addEventHandler ( "onPlayerWasted", root, destroyPlayerBlip ) addEventHand setTimer ( function ( ) for i,v in ipairs ( getElementsByType ( "player" ) ) do if isElement ( blip [ v ] ) then destroyElement ( blip [ v ] ) end local theTeam = getPlayerTeam ( v ) if (not theTeam) then return end if ( getTeamName ( theTeam ) == "Police" ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( v, r, g, b ) setBlipColor ( blip [ v ], r, g, b, 255 ) end end, 30000, 0 )
  16. onVehicleExplode -- Event destroyElement
  17. It only supports RGB at the moment. Next update ill make it support HEX.
  18. You can look up interior coordinates on Google.
  19. You'll need a GUI first of all... Then, make the marker create on the client side, and when he hits the server triggers a default MTA event called "onClientMarkerHit."
  20. You could make it so runcode will only work on certain accounts...
×
×
  • Create New...