Jump to content

Cant Show Text With Command - TDM Script


Recommended Posts

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) 

Link to comment
  • Other Languages Moderators
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 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...