Jump to content

Join Player :D


Recommended Posts

mira solid me estuvieron ayudando... pero aun sigue sin funcionar

function greetPlayer ( ) 
addEventHandler("onClientRender", root, drawTheText) 
setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) 
  
function drawTheText() 
dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..Al Servidor Estan Cargando Los Resource, sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) 
end 

esta es la meta :/

  "poop" name="dxDrawTwxt" version="1.0" type="script" /> 
  

Link to comment
function greetPlayer ( ) 
addEventHandler("onClientRender", root, drawTheText) 
setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) 
  
function drawTheText() 
dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) 
end 

OT: Renkon, tienes mis números en todas las posts que has hecho xD.

Link to comment

Ese script nunca funcionara si no tienes definido sHeight ni sHeight, prueba con esto:

local sHeight,sHeight = guiGetScreenSize() 
  
function greetPlayer ( ) 
addEventHandler("onClientRender", root, drawTheText) 
setTimer(removeEventHandler, 10000, 1, "onClientRender", root, drawTheText) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) 
  
function drawTheText() 
dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) 
end 

Recuerda siempre definir las variables que usas.

Link to comment

Ahora que me fijo tienes mal la sintaxis de set timer intenta esto:

local sHeight,sHeight = guiGetScreenSize() 
  
function greetPlayer ( ) 
    addEventHandler("onClientRender", root, drawTheText) 
    setTimer ( 
    function ( ) 
        removeEventHandler ( "onClientRender", root, drawTheText ) 
    end 
    ,10000,1) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) 
  
function drawTheText() 
    dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) 
end 

Link to comment
Ahora que me fijo tienes mal la sintaxis de set timer intenta esto:
local sHeight,sHeight = guiGetScreenSize() 
  
function greetPlayer ( ) 
    addEventHandler("onClientRender", root, drawTheText) 
    setTimer ( 
    function ( ) 
        removeEventHandler ( "onClientRender", root, drawTheText ) 
    end 
    ,10000,1) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, greetPlayer ) 
  
function drawTheText() 
    dxDrawText("#ff0000Welcome: #7CFC00"..getPlayerName(localPlayer)..'Al Servidor Estan Cargando Los Resource', sWidth* 0.2, sHeight*0.2, sWidth*0.3, sHeight*0.2, tocolor(255, 255, 255, 255), 5, "bankgothic", "left", "top", false, false, true, true, true) 
end 

El setTimer estaba bien.

estas funciones son cliente side?

onPlayerJoin 
onPlayerConnect 

gracias

Primero que todo son eventos y segundo son server-side.

Link to comment
  • Recently Browsing   0 members

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