Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. https://community.multitheftauto.com/ind ... ls&id=6330 This resource is mine, is ilegally uploaded. DONE
  2. Castillo

    PM again

    Player is not defined anywhere on that function.
  3. local function getTeam ( team ) return getTeamFromName ( team ) end addEventHandler ( "onClientRender", root, function ( ) local team1 = getTeam ( "Players Drift" ) local team2 = getTeam ( "Grove" ) local team3 = getTeam ( "Police" ) local team4 = getTeam ( "No Team" ) local count1 = countPlayersInTeam ( team1 ) local count2 = countPlayersInTeam ( team2 ) local count3 = countPlayersInTeam ( team3 ) local count4 = countPlayersInTeam ( team3 ) if ( count1 ) then guiSetText ( DriftPlayers, "Drift Players: ".. tonumber ( count1 ) ) end local counall = ( count2 + count3 + count4 ) if ( counall ) then guiSetText ( WarPlayers, "War Players: ".. tonumber ( counall ) ) end end )
  4. getTeam and count are custom functions?
  5. Because that's wrong, "content" is not the image, is the player name. Try with this: dxDrawImage( topX+theX, y+s(1), 16, 11, getElementData ( element, "Name" ) [ 1 ], 0, 0, 0, cWhite, drawOverGUI )
  6. Well, the problem is that you're checking only the last GUI element ( "Ver" ) if is visible or not.
  7. bindKey ( "n" , "down" , function ( ) if ( guiGetVisible ( Drift ) and guiGetVisible ( War ) and guiGetVisible ( ChoseL ) and guiGetVisible ( Ver ) == true ) then guiSetVisible ( Drift, false ) guiSetVisible ( War, false ) guiSetVisible ( ChoseL, false ) guiSetVisible ( Ver, false ) fadeCamera ( true ) showChat ( true ) showCursor ( false ) elseif ( guiGetVisible ( Drift ) and guiGetVisible ( War ) and guiGetVisible ( ChoseL ) and guiGetVisible ( Ver ) == false ) then guiSetVisible ( Drift, true ) guiSetVisible ( War, true ) guiSetVisible ( ChoseL, true ) guiSetVisible ( Ver, true ) fadeCamera ( false ) showChat ( false ) showCursor ( true ) end end )
  8. Could have posted the error from the beginning. You got two "and" instead of one, check "if" and "elseif" lines.
  9. Post the full code so I can test on it.
  10. Search where it draws names and try to place it there.
  11. Maybe if you could tell us what's the problem?
  12. The text doesn't use the "country" data, because I set both into "Home" data in form of table.
  13. Yes, but you would need to put the element before the "100".
  14. You're welcome. With setTimer is always like this: setTimer ( function, time, repeats, arguments )
  15. What do you mean by using outputChatBox with setTimer? you mean send a chat message after X time? if so, then is easy: setTimer ( outputChatBox, 5000, 1, "Hello World!" )
  16. blips = { } addEvent ( "onZombieSpawn", true ) addEventHandler ( "onZombieSpawn", root, function ( ) for _, v in ipairs ( getElementsByType ( "ped" ) ) do if getElementData ( v, "zombie" ) then if ( not blips [ v ] ) then blips [ v ] = createBlipAttachedTo ( v, 0 ) end end end end ) addEvent ( "onZombieWasted", true ) addEventHandler ( "onZombieWasted", root, function ( ) if ( isElement ( blips [ source ] ) ) then destroyElement ( blips [ source ] ) end end )
  17. Maybe the position is wrong, you can mess around with it.
  18. Castillo

    Problem

    Remove one of the "=".
  19. This will create more than one blip for zombie I think.
×
×
  • Create New...