Jump to content

Xeno

Members
  • Posts

    728
  • Joined

  • Last visited

Everything posted by Xeno

  1. Create the teams OUTSIDE the function teamAdmmin = createTeam ( "Admin", 0, 255, 0 ) --change the 3 numbers(0,255,0), the first number is ColourR, the second is ColourG, and the last one is ColourB teamFreeroamers = createTeam ( "Freeroamer", 200, 0, 100 )
  2. Did you follow the instructions when installing it? (Adding it to the ACL in the "Admin" section)
  3. Login panel : https://community.multitheftauto.com/index.php?p=resources&s=details&id=3393
  4. I dont know ... It just says: Attempt to compare two userdata values EDIT: NVM I fixed it! Thanks for your help Castiii :3
  5. Yeah the team exists. I change around the clientTrigger and then changed it too setPlayerTeam (source ,pred ) and now its saying it cant compare two user values.
  6. Bad arguement @ "setPlayerTeam"
  7. I am so confused here, I cant seem to setPlayerTeam, I've done it before this way and for some reason its giving me a bad arugement error... Here's the code. function evenTeams(player) local ali = getTeamFromName ( "cheese" ) local pred = getTeamFromName ( "bacon" ) local aliCount = countPlayersInTeam ( ali ) local predCount = countPlayersInTeam ( pred ) if aliCount == predCount then setPlayerTeam ( player ,pred ) outputChatBox("Debug test 1" , 255,0,0) elseif pred > ali then triggerClientEvent("evenTeamsMessage", getRootElement()) elseif pred < ali then setPlayerTeam ( player , pred ) end end addEvent("evenTeams", true) addEventHandler("evenTeams", getRootElement(), evenTeams) I've tried replacing "player" with "source" "thePlayer" and it still doesnt work... When I replace it with "source" the error is changed to "bad player pointer", but with player and thePlayer, its changed to "Bad arguement" Could you please help me? Thanks, Xeno
  8. Ok, thanks for the information!
  9. Not in some days, I gather he will release it in a couple of months.
  10. If I were to use a picture from a film in my script, could I be charged?
  11. Congradulations! Guru! And ill test it again... local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) function createText ( ) local text="" local team = getTeamFromName("Aliens") local players = getPlayersInTeam (team) dxDrawText ( "Team:", 175, screenHeight - 98, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) for i,v in pairs (players) do text=text.." , "..getPlayerName(v) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end addEventHandler ( "onClientResourceStart", resourceRoot, HandleTheRendering) That is my full script
  12. I'm trying to make it display all the players names that are in the team. Sorry, I didn't make it very clear lol.
  13. It does not display the player name.
  14. I have a problem with getting all the players in a team... Here is my code: local team = getTeamFromName("Aliens") local players = getPlayersInTeam (team) dxDrawText ( "Team:", 175, screenHeight - 98, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) dxDrawText ( "Team:"..players.."", 175, screenHeight - 100, screenWidth, screenHeight, tocolor ( 255, 0, 0, 255 ), 1, "pricedown" ) The debug says: Attempt to concentrate local "players" (a table value) I would appreciate if you helped me.
  15. No one will really script for you for free, it has to involve some payment.
  16. A dedicated server costs around 60 euros for a cheap one (I think?) Or you could just buy a single server, but they can get slow, but there cheap.
  17. I remember having a special board that fitted easily under my laptop, and you would plug something into a USB port and it would cool down the laptop. It costs though.
  18. Xeno

    Functions.

    Go to your admin panel and go to the resources section and press "manage ACL" - Click on the admin bit and press addObject and put in: resource.ping
  19. Use markers (corona or something?)
  20. Oh actually, I like the idea of having a store where you can buy them.
  21. Xeno

    Fire

    Maybe you could create an invisible marker around the fire so that when the water hits the marker...? I dont know...
  22. Contradicted yourself..............................
  23. I think he wants it so the left shift makes it fly?
  24. Perhaps... But I would still like to see a GUI where you can choose the colour. I dont know why it would just make it look more professional
×
×
  • Create New...