Bom alguem poderia me ajudar quando o player falar !bless, checkar se ele já tem se não tiver, adicionar isso a database:
function AddPlayerBlessing(cid, type)local MGB = mysqlQuery("SELECT `bless1`, `bless2`, `bless3`, `bless4`, `bless5` FROM `players` WHERE `name` = '" .. getPlayerName(cid) .. "';", "bless1, bless2, bless3, bless4, bless5")if type == 1 then if (MGB.bless1) == "0" then mysqlQuery("UPDATE `players` SET `bless1` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 2 then if (MGB.bless2) == "0" then mysqlQuery("UPDATE `players` SET `bless2` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 3 then if (MGB.bless3) == "0" then mysqlQuery("UPDATE `players` SET `bless3` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 4 then if (MGB.bless4) == "0" then mysqlQuery("UPDATE `players` SET `bless4` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false endelseif type == 5 then if (MGB.bless5) == "0" then mysqlQuery("UPDATE `players` SET `bless5` = '1' WHERE `name` = '" .. getPlayerName(cid) .. "';", "SET") CheckPlayerBlessings(cid) return true else return false end