26.03.2012, 16:24
pawn Код:
public BanPlayerAccount(playerid,bannedby[MAX_PLAYER_NAME],reason[])
{
new string[128];
format(string,sizeof(string),"[Server] %s foi Account-Banned por %s, Motivo: %s ",GetPlayerNameEx(playerid),bannedby,reason);
SendClientMessageToAll(COLOR_ADMINCMD,string);
AccountBanLog(string);
PlayerInfo[playerid][pBanned] = 1;
OnPlayerDataSave(playerid);
return 1;
}
//--------------------------------------------------------------------
public BanPlayer(playerid,bannedby[MAX_PLAYER_NAME],reason[])
{
new string[128];
format(string,sizeof(string),"[Server] %s foi banido por %s, Motivo: %s ",GetPlayerNameEx(playerid),bannedby,reason);
SendClientMessageToAll(COLOR_ADMINCMD,string);
BanLog(string);
return Ban(playerid);
}