How I can put all players can use this command (free and premmys?)
Lua:
function onSay(cid, words, param, channel)
local cfg = {
full = 42 * 60 * 1000,
price = 100000
}
if(words == "!stamina") then
if(getPlayerStamina(cid) >= cfg.full) then
doPlayerSendCancel(cid, "Tu stamina esta full.")
elseif(getPlayerMoney(cid) < cfg.price) then
doPlayerSendCancel(cid, "Tu no tienes dinero, para recargarla vale 100k.")
elseif(not isPremium(cid)) then
doPlayerSendCancel(cid, "Tu no eres premium account.")
else
doPlayerSetStamina(cid, cfg.full)
doPlayerRemoveMoney(cid, cfg.price)
doCreatureSay(cid, "Tu stamina fue recuperada!", TALKTYPE_ORANGE_1)
end
return true
end
end