Timic Posted March 21, 2011 Posted March 21, 2011 Hello, I saw in debug, it was bad argument. Why O_O? function checkPlayerOnJoin(player) if not (string.find(getPlayerName(source),"[TAG]")) then redirectPlayer(playerSource, "some ip", tonumber(some port)) --redirect the player end end addEventHandler("onPlayerJoin", getRootElement(), checkPlayerOnJoin) P.S: I put IP and port but anyway, it won't work
proracer Posted March 21, 2011 Posted March 21, 2011 1. What should script do? 2. Where is the error?
Timic Posted March 21, 2011 Author Posted March 21, 2011 Well, if is without [TAG] tag then should redirect it. Bad argument at redirect player!
Discord Moderators Zango Posted March 21, 2011 Discord Moderators Posted March 21, 2011 you would want to change playerSource in redirectPlayer to source
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