SA-MP Forums Archive
Ban Message not showing. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Ban Message not showing. (/showthread.php?tid=548993)



Ban Message not showing. - gtasarules14 - 04.12.2014

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;
}



Re: Ban Message not showing. - xCrazyMonkey - 04.12.2014

Quote:

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

Can you show me the public of BanExDelay?