Login only when char is level > 30

08/01/2016 23:28 white95260#1
Hello. I'm trying to make a script when you log in into the member panel, you need to have a char atleast level 30. If you doesn't have one, it's say "You need to have atleast one char level 30." and if you have one then it work, if someone can help me with skype or anything, tell me plz.
08/02/2016 20:34 [GM]Precious#2
Hope this can help you.

your query = select MAX(Level) as toonlevel FROM [PS_GameData].[dbo].[Chars] as c
left join(select UserUID from PS_UserData.dbo.Users_Master) as um ON c.UserUID = um.UserUID
where UserID = ? (username variable from form)

your filter = ['toonlevel'] < 30
08/02/2016 21:44 white95260#3
Hello, thanks very much for you help, appreciate it, but my script to login is based on PDO, and I want to add a note when your char is less than level 30, can you help me with Skype ? :/

Ok so i found a way to get it working, thanks you [GM]Precious.