Lol?
pawn Код:
public OnPlayerConnect(playerid)
{
if(Player[playerid][Banned] == 1)
{
SendClientMessage(playerid,0x3a3a3aFF,"You still banned!");
Kick(playerid);
}
Basically, without loading anything, and using any variables yet, as soon as the player connects, where's it gonna check if it's banned from? The bans save on the ID or something? That won't work, actually. So the ban system is broken. It's not as simple as that at all. You need to parse the files, aka load them, especially the banned variable first, and if they are banned, then you kick them. At this rate it'll kick the player who got banned last on that ID, which won't be such a success for your slots.
Also, wherever you've used just the Kick function, there are some issues with that, here:
Quote:
Important Note: As of SA-MP 0.3x, any action taken before Kick() (such as sending a message with SendClientMessage) will not work. A timer must be used to delay the kick. https://sampwiki.blast.hk/wiki/Kick
|
Those are just 2 of the problems I found.. God knows how many more there could be that could affect the gameplay.
There aren't very many commands for players either, most of them are allocated for admins. Anyhow, good job for your work and effort.