I want to kick a certain player that is online if he has a certain item in his inventory and will delete that entry from `inventory` table afterwards. I have a script below but it is not doing anything except for the delete part.
query_sql "SELECT `char_id` FROM `inventory` WHERE `nameid` = '1599'",.@IHLD;
query_sql "SELECT `name` FROM `char` WHERE `char_id` = '.@IHLD'",.@IHLDNAME$;
atcommand "@kick "+.@IHLDNAME$;
query_sql "DELETE FROM `inventory` WHERE `nameid` = '1599'";
Question
alkhaleej
Can anyone please help me on this script:
I want to kick a certain player that is online if he has a certain item in his inventory and will delete that entry from `inventory` table afterwards. I have a script below but it is not doing anything except for the delete part.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.