Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. addCommandHandler getPedOccupiedVehicle getElementModel attachElements
  2. Choose hosting, which has machine in France/Geremany.
  3. Just save the skin before player enters the marker by using setElementData.
  4. But wait, how do you want to color this message when you did it already by using HEX codes?
  5. Put lane and check if those colors are right outputChatBox ( red .. green .. blue )
  6. This givePlayerBlood function is in resource that you are working in? If no, you have to export that function.
  7. WhoAmI

    [HELP] Bans

    In admin panel or in your own script?
  8. Change 'source' to 'localPlayer' everywhere in this function.
  9. Just change into local id = getElementModel ( vehicle )
  10. getPlayerNametagColor ( source )
  11. WhoAmI

    solved

    Any errors in debug?
  12. Just do a 'for' and get player elements, then put in it dxDrawText with automatically changing position depends of for's key.
  13. WhoAmI

    solved

    What exactly doesn't work?
  14. Well, you want to enable It on scoreboard? Got to admin panel, go to resources tab, select scoreboard resource and just change settings of this resource.
  15. Well, this is more complicated script. For that you need some database knowledge and your LUA would have to be more professional.
  16. GUIEditor = { button = {}, window = {} } okienko = guiCreateWindow(579, 20, 221, 487, "Teleportujące budki", false) guiWindowSetSizable(okienko, false) guiSetVisible ( okienko, false ) sfd = guiCreateButton(28, 29, 171, 15, "San Fierro Downdown", false, okienko) gs = guiCreateButton(28, 44, 171, 15, "Grove Street", false, okienko) addEventHandler("onClientGUIClick", getRootElement(), grovestreet) function grovestreet ( player ) if source == gs then setElementPosition ( localPlayer, 2506, -1661, 13 ) end end addCommandHandler( "otworz", function ( ) guiSetVisible ( not guiGetVisible ( okienko ) ) showCursor ( not isCursorShowing ( ) ) end )
  17. I'm not sure that would work couse I'm doin it for first tiem, but cameraPosition = { -- x, y, z, lookAtX, lookAtY, lookAtZ { 0, 0, 0, 1, 1, 1 }, { 1, 1, 1, 2, 2, 2 } } minutes = 5 -- after how many minutes cameraMatrix should change addEventHandler ( "onPlayerJoin", root, function ( ) fadeCamera ( source, true ) local randomPos = cameraPosition [ math.random ( #cameraPosition ) ] setCameraMatrix ( source, randomPos [ 1 ], randomPos [ 2 ], randomPos [ 3 ], randomPos, [ 4 ], randomPos [ 5 ], randomPos [ 6 ] ) local timer = setTimer ( function ( ) local table = cameraPosition [ math.random ( #cameraPosition ) ] setCameraMatrix ( source, table [ 1 ], table [ 2 ], table [ 3 ], table, [ 4 ], table [ 5 ], table [ 6 ] ) end, minutes * 60000, 0 ) setElementData ( source, "joiningTimer", timer ) end ) addEventHandler ( "onPlayerLogin", root, function ( ) fadeCamera ( source, false ) local timer = getElementData ( source, "joiningTimer" ) if ( isTimer ( timer ) ) then killTimer ( timer ) end end )
  18. I'm not sure, but it looks like this local color = tonumber ( 212, 201, 174, 255 ) addEventHandler ( "onClientPlayerDamage", root, function ( ) color = tocolor ( 255, 0, 0, 255 ) setTimer ( function() color = tocolor ( 212, 201, 174, 255 ) end, 5000, 1 ) end ) addEventHandler ( "onClientPlayerWeaponFire", root, function ( ) color = tocolor ( 107, 6, 82, 255 ) setTimer ( function() color = tocolor ( 212, 201, 174, 255 ) end, 5000, 1 ) end ) addEventHandler ( "onClientRender", root, function ( ) dxDrawColorText ( getPlayerName(player):gsub("_", " ") .. " (".. id .. ") ", sx-w, sy - offset, sx, sy - offset, color, textscale*NAMETAG_TEXTSIZE, srfont, "center", "bottom", false, false, false ) end )
  19. It doesn't. It just shows the circle on the ground. If you want to create marker, draw circle, put colshape on it and check if someone got into circle by using onColShapeHit.
  20. Well, how about money? Just want to know it in public, then I'd think about it.
  21. That's too hard for you. You shall start from easier things. Start from beginning.
×
×
  • Create New...