Sziasztok lenne egy hiba ha valkit ki név bannolok akkor ugyan ugy vissza tud jönni
if(strcmp(cmd, \"/nban\", true) == 0 || strcmp(cmd, \"/nameban\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4) return DenyMessage(playerid, 4);
tmp = strtok(cmdtext, idx);
new otherplayer = ReturnUser(tmp);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, \"USAGE: /nban [játékosid] [üzenet]\");
return 1;
}
if(otherplayer == playerid)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, \"Nem tudod magad bannolni !\");
return 1;
}
if(IsPlayerConnected(otherplayer))
{
if(PlayerInfo[playerid][pAdmin] < PlayerInfo[otherplayer][pAdmin])
{
SendClientMessage(playerid, COLOR_BRIGHTRED, \"Nagyobb Admint nem tudsz Név-bannolni!\");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= \' \'))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, \"USAGE: /nban [játékosid] [üzenet]\");
return 1;
}
new year, month, day;
getdate(year, month, day);
PlayerInfo[playerid][pLevel] = -1;
SaveAccounts();
format(string, sizeof(string), \"%s Ezt a nevet %s admin ki banolta. oka: (%s)\", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_BRIGHTRED, string);
format(string, sizeof(string), \"%s Ezt a nevet %s admin ki banolta. oka:(%s) (%d-%d-%d)\", giveplayer, sendername, (result),month,day,year);
NBanLog(string);
Kick(playerid);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, \"Nincs ilyen id !\");
}
}
return 1;
}
ugy tom hogy valamit csinálni kell onplayerconnectnél nem? de valaki le irná hogy mit