Ban ........ appeal on forums
#1

Hi there, it's me jake again.

I was just wondering if anyone can help me with how to make it so.... when I ban someone it says Admcmd: Jake_Canfield banned : Playernamehere for reason here Appeal on forums.

instead of Admcmd: Jake_Canfield banned: Playernamehere for reason here.
Reply
#2

Change it in the code..?

'-.-
Reply
#3

format strings
Reply
#4

It will be easyer to help if you show us your ban command script
Reply
#5

Well im running Larp.
Reply
#6

Just Edit Red Lines


Quote:

if(strcmp(cmd, "/ban", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
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_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]");
return 1;
}
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[giveplayerid][pLocked] = 1;
Ban(giveplayerid);
return 1;
}
}//not connected
}
else
{
format(string, sizeof(string), " %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

Reply
#7

just do something like:

format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s Appeal on forums.", giveplayer, sendername, (result));
Reply
#8

could someone unban me.. the ban was suppost to be only 3 days.. almost a week has gone..
Reply
#9

Quote:
Originally Posted by Juan_Chavez
Посмотреть сообщение
could someone unban me.. the ban was suppost to be only 3 days.. almost a week has gone..
You're VERY VERY LATE.

03/10/2009 09:29 PM

Dude, check the date before you humiliate your self.
Reply
#10

Quote:
Originally Posted by Juan_Chavez
Посмотреть сообщение
could someone unban me.. the ban was suppost to be only 3 days.. almost a week has gone..
This idiot posts everywhere + you will just get banned again for ban evading

Quote:
Originally Posted by SAMP
This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)