
Xeno
Members-
Posts
728 -
Joined
-
Last visited
Everything posted by Xeno
-
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 )
-
Did you follow the instructions when installing it? (Adding it to the ACL in the "Admin" section)
-
Login panel : https://community.multitheftauto.com/index.php?p=resources&s=details&id=3393
-
I dont know ... It just says: Attempt to compare two userdata values EDIT: NVM I fixed it! Thanks for your help Castiii :3
-
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.
-
Bad arguement @ "setPlayerTeam"
-
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
-
Ok, thanks for the information!
-
Not in some days, I gather he will release it in a couple of months.
-
If I were to use a picture from a film in my script, could I be charged?
-
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
-
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.
-
It does not display the player name.
-
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.
-
No one will really script for you for free, it has to involve some payment.
-
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.
-
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.
-
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
-
Use markers (corona or something?)
-
Oh actually, I like the idea of having a store where you can buy them.
-
Contradicted yourself..............................
-
I think he wants it so the left shift makes it fly?
-
MTADiag - diagnostic tool for MTA:SA & Support section information
Xeno replied to Towncivilian's question in Client
Good work- 58 replies
-
- mtadiag
- mta support
- (and 7 more)
-
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