Possible to show the value of mod_status with an iprint?
I think so. You would need some code similar to the login system.
If you want to simply know its value at a certain point, I recommend that you replace seta mod_status disconnect with seta mod_status say testvalue. Should be more simple.
set logfile 2
I just want to make it that it checks the value when you spawn. If the value is "disconnect", show the message "You are banned", wait 3 seconds and kick you. If its another value than "disconnect" dont do anything
Try to add
Right before the line that writes config.cfg and disconnects the banned player.PHP Code:
self.pers["banstatus"] = "banned";
Then, in checkForBanned() test self.pers["banstatus"] value.
I tried it and it didn't work, I'm probably missing something. I'm creating a different response right now.
set logfile 2
Yeah it doesnt save the self.pers["banstatus"], unless u use openfile and print it in a file on the ftp
Instead of using iprint you can open a popmenu
set logfile 2
Any ideas how? I just want to let the player know he has a ban and then disconnects him
PHP Code:
self setClientCvar("com_errorTitle", "BANNED");
self setClientCvar("com_errorMessage", "You have been disconnected, because you are banned");
wait(1);
self thread execClientCommand("disconnect");