-
Posts
7,337 -
Joined
-
Days Won
11
Everything posted by TAPL
-
i've Tested What I post Here and Work With Yellow Color You have successfully choosed Red team.
-
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
-
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 )
-
what? as i see your code should send an team name string to server side i think you're not who made this code
-
show Client
-
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)
-
https://wiki.multitheftauto.com/wiki/Res ... scoreboard
-
@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.
-
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)
-
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)
-
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 ()
-
Dev PoinT, this is question for you, you can't answer this?
-
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
-
you can learn by yourself and fix it by yourself this what you need, not put a random codes and say fix!
-
function Jail (player, command, name) local thePlayer = getPlayerFromName(name) if thePlayer then setElementPosition ( thePlayer, 3, 4, 20 ) end end addCommandHandler("jail",Jail)
-
you want us script this for you? LoL!
-
who is thePlayer ?
-
yes there an way by magic as i said
-
panos13, did you drink beer or what
-
Blaawee, we are doing a magic in my server and because the magic the name and health bar hidden
-
oh, what the gamemode name? maybe i will need the code in future
-
how you Solved it? we want know ^^
-
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)
-
i don't see any event onPlayerJoin or onPlayerQuit -_-"