11.10.2011, 01:43
Yes but when you ban the player, you need (PlayerInfo / AccInfo / pInfo etc) and that needs to be set in your userfiles so it gets saved.
When you /ban the player, you set the variable " PlayerInfo[playerid][Banned] " to 1, like PlayerInfo[playerid][Banned] = 1; in the ban command. It also needs to be written to the player's file.
Under onplayerconnect, you would need to use dini, yini or something else to check if the playerid's userfile is banned. If it is, you can send your custom message.
When you /ban the player, you set the variable " PlayerInfo[playerid][Banned] " to 1, like PlayerInfo[playerid][Banned] = 1; in the ban command. It also needs to be written to the player's file.
Under onplayerconnect, you would need to use dini, yini or something else to check if the playerid's userfile is banned. If it is, you can send your custom message.