23.05.2013, 10:04
pawn Код:
CMD:desbanplayer(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
new PTiD[30], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params, "u", PTiD)) return SendClientMessage(playerid, -1, "Uso: /banplayer [ID]");
new string[1000];
format(string, 256, "%s\r\n" ,PTiD);
ArmazenarFaixaIP(string);
format(string, sizeof(string), "%s desBaniu o player %s do servidor!.", name, PTiD);
SendClientMessageToAll(0xC4C4C4FF, string);
// Use a funзгo de deletar de seu modo de salvamento !
}
else
{
SendClientMessage(playerid, 0xAA3333AA, " VOCК NГO Й ADMIN! ");
}
return 1;
}