Jump to content

TAPL

Retired Staff
  • Posts

    7,337
  • Joined

  • Days Won

    11

Everything posted by TAPL

  1. i've Tested What I post Here and Work With Yellow Color You have successfully choosed Red team.
  2. what? LOL! LOL! LOL! LOL! LOL! LOL! LOL! LOL! i think you don't know how to test your script LOL!LOL!LOL!LOL!LOL!LOL!LOL!LOL!LOL!LOL! also i don't see a point to trigger to server just this client Side function me () if (source ~= getLocalPlayer()) then return end local team = getPlayerTeam ( source ) if ( team ) then outputChatBox("You have successfully choosed "..getTeamName(team).." team.", 255, 255, 0) end end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), me ) and Done
  3. function me () if (source ~= getLocalPlayer()) then return end local team = getPlayerTeam ( source ) if ( team ) then local teamName = getTeamName(team) triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(),teamName) end end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), me )
  4. what? as i see your code should send an team name string to server side i think you're not who made this code
  5. triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(),) should be triggerServerEvent ( "onPlayerChooseTeam", getLocalPlayer(),teamName) ------------------------------------------------ outputChatBox("You have successfully choosed "..getTeamName(team).." team.", resPlayer, root, 255, 255, 0) should be outputChatBox("You have successfully choosed "..getTeamName(team).." team.", source, 255, 255, 0)
  6. https://wiki.multitheftauto.com/wiki/Res ... scoreboard
  7. @Dev Point, you don't even know what is going on While you can't help yourself you are trying to help other peoples! Try to help yourself instead of trying to help other peoples.
  8. teamRed = createTeam ( "Red", 255, 0, 0 ) teamBlue = createTeam ( "Blue", 0, 0, 255 ) function balanceTeams () local RedCount = countPlayersInTeam(teamRed) local BlueCount = countPlayersInTeam(teamBlue) if RedCount ~= BlueCount then if RedCount > BlueCount then setPlayerTeam ( source , teamBlue ) elseif RedCount < BlueCount then setPlayerTeam ( source , teamRed ) end else setPlayerTeam ( source , teamRed ) end outputChatBox ( "You've been moved to the "..getTeamName (getPlayerTeam(source)):lower ().." team!", source ) end addEventHandler ("onPlayerJoin", root, balanceTeams)
  9. teamRed = createTeam ( "Red", 255, 0, 0 ) teamBlue = createTeam ( "Blue", 0, 0, 255 ) function balanceTeams () local RedCount = countPlayersInTeam ( teamBlue ) local BlueCount = countPlayersInTeam ( teamRed ) if RedCount ~= BlueCount then if RedCount > BlueCount then setPlayerTeam ( source , teamBlue ) elseif RedCount < BlueCount then setPlayerTeam ( source , teamRed ) end else setPlayerTeam ( source , teamRed ) end outputChatBox ( "You've been moved to the "..getTeamName (getPlayerTeam(source)):lower ().." team!", source ) end addEventHandler ("onPlayerJoin", root, balanceTeams)
  10. open wiki and read just read! is reading difficult? https://wiki.multitheftauto.com/wiki/OnPlayerJoin there are no parameters with event onPlayerJoin so this function balanceTeams ( thePlayer, source ) should be function balanceTeams ()
  11. Dev PoinT, this is question for you, you can't answer this?
  12. TAPL

    Jail

    as Solidsnake said in file "fr_client.lua" in freeroam you just need for this if (getElementData(localPlayer, "isJailed") == true) then return end so for disable /wt function warpToCommand(cmd, player) if (getElementData(localPlayer, "isJailed") == true) then return end if player then player = getPlayerFromNick(player) if player then server.warpMe(player) end else createWindow(wndWarp) showCursor(true) end end and F1 menu function toggleFRWindow() if (getElementData(localPlayer, "isJailed") == true) then return end if isWindowOpen(wndMain) then showCursor(false) hideAllWindows() colorPicker.closeSelect() else showCursor(true) showAllWindows() end end and /kill function killLocalPlayer() if (getElementData(localPlayer, "isJailed") == true) then return end server.killPed(g_Me) end
  13. you can learn by yourself and fix it by yourself this what you need, not put a random codes and say fix!
  14. TAPL

    help

    You're Welcome.
  15. TAPL

    help

    function Jail (player, command, name) local thePlayer = getPlayerFromName(name) if thePlayer then setElementPosition ( thePlayer, 3, 4, 20 ) end end addCommandHandler("jail",Jail)
  16. you want us script this for you? LoL!
  17. TAPL

    just a question

    yes there an way by magic as i said
  18. panos13, did you drink beer or what
  19. TAPL

    just a question

    Blaawee, we are doing a magic in my server and because the magic the name and health bar hidden
  20. oh, what the gamemode name? maybe i will need the code in future
  21. how you Solved it? we want know ^^
  22. wtf wtf is you doing lol you check if the skin is player? also don't use getPedSkin use getElementModel function skin () local skin = getElementModel (localPlayer) if skin then dxDrawText( "Your Skin: "..tostring(skin), 50, screenHeight-52, screenWidth, screenHeight, tocolor ( 255, 255, 0, 255 ), 1, "default-bold" ) end end addEventHandler("onClientRender",root, skin)
  23. i don't see any event onPlayerJoin or onPlayerQuit -_-"
×
×
  • Create New...