Jump to content

Problem


xeon17

Recommended Posts

function Check ( player ) 
local playerTeam = getPlayerTeam ( player )           
if ( playerTeam ) then 
outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamFromName ( PlayerTeam ).." ! ", player, 255, 255, 255, true )       
end 
end 
addEventHandler ( "onPlayerLogin", root, Check ) 

Nothing happens :(

Link to comment
  
function Check ( player ) 
local playerTeam = getPlayerTeam ( player )           
if ( playerTeam ) then 
outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamFromName ( "PlayerTeam" ).." ! ", player, 255, 255, 255, true )       
end 
end 
addEventHandler ( "onPlayerLogin", root, Check ) 
  

Try that.

Link to comment
  
  
function Check ( player ) 
local playerTeam = getPlayerTeam ( player )           
if  playerTeam  then 
outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamFromName ( "playerTeam" ).." ! ", player, 255, 255, 255, true )       
     end 
end 
addEventHandler ( "onPlayerLogin", root, Check ) 
  

this?

Link to comment

account thePreviousAccount, account theCurrentAccount, bool autoLogin

 function Check() 
local playerTeam = getPlayerTeam (source)           
    if  playerTeam  then 
        outputChatBox ( "#F4A460[GANG]#F08080 Bem vido a gang " .. getTeamName ( playerTeam ).." ! ", source, 255, 255, 255, true )       
    end 
end 
addEventHandler ( "onPlayerLogin", root, Check ) 

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...