Ban Message not showing.
#1

Hello, after I ban someone on my server that is on my host it does not display the message or the reason.
On my home server, it displays it perfectly.
My server uses Linux plugins, my plugins are currently up to date.
It does display the message for other players, just not for the player being banned.

Any suggestions?

My current code for the ban command.
pawn Код:
CMD:gban(playerid, params[])
{
    if(PlayerInfo[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "[ERROR]:You are not an Administrator");
    new targetid;
    new reason[128];
    if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, -1, "[Usage]:/ban [playerid] [reason]");
    if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "ERROR:This player is not connected!");
    new name[MAX_PLAYER_NAME];
    new target[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name,sizeof(name));
    GetPlayerName(targetid, target,sizeof(target));
    new str33[128];
    format(str33,sizeof(str33),"[ADMIN]%s %s has banned %s. [Reason]:%s",AdminLevel(playerid), name, target, reason);
    printf("[SERVER]:%s was banned by %s %s. Reason:%s", target,AdminLevel(playerid), name, reason);
    SendClientMessageToAll(0xFF8080FF, str33);
    SendClientMessage(targetid,0xFF8080FF,"You have been banned, please appeal it on our forums if you wish!");
    SetPVarString(targetid, "BanReason", reason);
    SetTimerEx("BanExDelay", false, 1000, "i", targetid);
    return 1;
}
Reply
#2

Quote:

SetTimerEx("BanExDelay", false, 1000, "i", targetid);

Can you show me the public of BanExDelay?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)