17.07.2017, 16:57
I don't have your game mode (Or any game mode that works like yours) so I can't test it, But it should work
this should be under the player connect, The only part that I've edited.
Did it work or no? If yes, Rep. and thanks.
PHP код:
/* Clan System */
new playeridname[MAX_PLAYER_NAME];
if (IsPlayerNPC(playerid)) return 1;
GetPlayerName(playerid,playeridname,sizeof(playeri dname));
Clan[playerid] = dini_Int(AddDirFile(dir_userfiles, playeridname), "Clanmember");
if(Clan[playerid]==0)
{
if(strfind(playeridname, ClanTag, true) != -1)
{
new str[256];
format(str, sizeof(str), "Hey you are not from %s clan, go back and change your name to something else and don't use the tag!.", ClanTag);
SendClientMessage(playerid, COLOR_RED, str);
SetTimerEx("Kicker", 2000, 0, "i", playerid);
}
}
Did it work or no? If yes, Rep. and thanks.