10.08.2018, 21:41
PHP код:
CMD:banir(playerid, params[])
{
if(PlayerInfo[playerid][pAdminDono] == 1)
{
if(sscanf(params, "u", ID)) return Msg(playerid, VERMELHO, "[ x ] Use /Banir[ ID ]"), Msg(playerid, VERMELHO, "[ x ] Use o comando para banir player");
if(!IsPlayerConnected(ID)) return Msg(playerid, VERMELHO, "[ x ] Ninguйm online com esse ID !");
mysql_format(DB_CONEXAO, gstring, sizeof gstring, "UPDATE `player_info` SET `Banido` = 1 WHERE `id` = %d", PlayerInfo[ID][playerID]);
mysql_function_query(DB_CONEXAO, gstring, false, #, #);
Msg(playerid, AMARELO, "[ > ] Comando efetuado com sucesso !");
}
return true;
}


