08.02.2013, 20:17
Why if a player joins with [GTA] tag and hasn't been accepted. It's not being kicked??
PHP код:
public OnPlayerConnect(playerid)
{
new nname[MAX_PLAYER_NAME];
GetPlayerName(playerid, nname, 24);
if(strfind(nname, "[GTA]", true) != -1)
{
if(PlayerInfo[playerid][Accepted] == 1)
{
SendClientMessage(playerid, 0x00A1A9FF, "Congratulations! You are part of our Community [GTA]. Be proud to use our tag!");
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot use our [GTA] tag. You're not a member. Apply on forums to get this tag");
Kick(playerid);
}
}
return 1;
}