M_OnPlayerConnect(playerid)
{
if(!strcmp(M_Bot_BOT_NAME,GetName(playerid),true))
{
M_Kick(playerid);
}
if(CheckIPFromList(playerid))
{
//M_Kick(playerid);
}
for(new n=0; n<sizeof(BanClanTags); n++)
{
if(strfind(GetName(playerid),BanClanTags[n],false) == 0)
{
new banstring[128];
format(banstring,sizeof(banstring)," Dein Clan %s ist von diesem Server gebannt!",BanClanTags[n]);
SendClientMessage(playerid,M_BOT_COLOR,banstring);
format(banstring,sizeof(banstring)," %s aus dem gebannten Clan %s hat den Server betreten und wurde gebannt!",GetName(playerid),BanClanTags[n]);
SendClientMessageToAdmins(M_BOT_COLOR,banstring);
//M_Log(banstring);
//format(banstring,sizeof(banstring),"Clan %s",BanClanTags[n]);
//M_BanEx(playerid,banstring);
}
}
for(new n=0; n<sizeof(BanNames); n++)
{
if(strcmp(GetName(playerid),BanNames[n],true) == 0)
{
new banstring[128];
format(banstring,sizeof(banstring)," Dein Name %s ist von diesem Server gebannt!",GetName(playerid));
SendClientMessage(playerid,M_BOT_COLOR,banstring);
format(banstring,sizeof(banstring)," %s hat den Server betreten und wurde gebannt!",GetName(playerid));
SendClientMessageToAdmins(M_BOT_COLOR,banstring);
//M_Log(banstring);
//format(banstring,sizeof(banstring),"Name %s",BanNames[n]);
//M_BanEx(playerid,banstring);
}
}
// Reset Vars
M_Bot[playerid][PMoney] = 0;
M_Bot[playerid][PLastInterior] = 0;
M_Bot[playerid][PInactiveSeconds] = 0;
M_Bot[playerid][PIPWarns] = 0;
M_Bot[playerid][PBadWordWarns] = 0;
M_Bot[playerid][PHighPingWarns] = 0;
M_Bot[playerid][PAFK] = 0;
M_Bot[playerid][PFrozen] = 0;
M_Bot[playerid][PSpawned] = 0;
M_Bot[playerid][PCheck] = 0;
M_Bot[playerid][PCheckHighPing] = 0;
for(new slot=0; slot<13; slot++)
{
M_Bot[playerid][PWeapon][slot] = -1;
M_Bot[playerid][PAmmo][slot] = 0;
}
return 1;
}
Zeile 738 ist new banstring[128];