so i putdown the function GM:PlayerConnect and nothing happens when i join the game
[code]
function GM:PlayerConnect( name, ip )
PrintMessage( HUD_PRINTTALK, name .. " has joined the battle." )
end
[/code]
"ingame"
Player has joined the game
why does it not change it to battle?
You probably have it somewhere else in your code. Look for it or search for PlayerConnect
[QUOTE=Jenssons;47796479]so i putdown the function GM:PlayerConnect and nothing happens when i join the game
[code]
function GM:PlayerConnect( name, ip )
PrintMessage( HUD_PRINTTALK, name .. " has joined the battle." )
end
[/code]
"ingame"
Player has joined the game
why does it not change it to battle?[/QUOTE]
PlayerConnect is called as soon as you start to connect, so you wont see the message printed when you finally load in. Use PlayerInitialSpawn instead to print closer to when the player actually joins. It will show up then. You can also just print to server console to check if the function gets called
Sorry, you need to Log In to post a reply to this thread.