micheal1230 Posted June 15, 2012 Posted June 15, 2012 No Need For Serverside I Have Added The Command It Shows For Like 1 Second Then Disappears Client: addEvent("tdmstart", true) function drawthetext() local redteamname = getTeamFromName("Red Team") local blueteamname = getTeamFromName("Blue Team") local redp = countPlayersInTeam( redteamname ) local bluep = countPlayersInTeam( blueteamname ) local screenWidth, screenHeight = guiGetScreenSize() local ax, ay = screenWidth - 90, 200 local ax1, ay1 = screenWidth - 92, 180 dxDrawText("Red Team: "..tostring(redp), ax,ay) dxDrawText("Blue Team: "..tostring(bluep), ax1,ay1) end addEventHandler("onClientRender", root, drawthetext) addEventHandler("tdmstart",root, drawthetext)
TAPL Posted June 15, 2012 Posted June 15, 2012 addEvent("tdmstart", true) addEventHandler("tdmstart",root, function() addEventHandler("onClientRender", root, drawthetext) end) function drawthetext() local redteamname = getTeamFromName("Red Team") local blueteamname = getTeamFromName("Blue Team") local redp = countPlayersInTeam( redteamname ) local bluep = countPlayersInTeam( blueteamname ) local screenWidth, screenHeight = guiGetScreenSize() local ax, ay = screenWidth - 90, 200 local ax1, ay1 = screenWidth - 92, 180 dxDrawText("Red Team: "..tostring(redp), ax,ay) dxDrawText("Blue Team: "..tostring(bluep), ax1,ay1) end
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now