• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua -=[TFS]=- v0.4 8.60 Command !all 12:59 [/all] --> [VIP] Winzaack - Reset [ ] Level [664]: hail HELP PLEASE

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
need all reset level show only title storage = 54676

Lua:
function onSay(cid, words, param, channel)
    if(param == "") then
        return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please type a message for broadcast.") and true
    end
    if not (exhaustion.check(cid, 1000)) then
        exhaustion.set(cid, 1000, 60)
        broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_STATUS_CONSOLE_ORANGE)
    broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_INFO_DESCR)
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please wait "..exhaustion.get(cid, 1000).." second"..(exhaustion.get(cid, 1000) > 1 and "s" or "").." to broadcast again.")
    end
    return true
end
 
Solution
E
change:
broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_INFO_DESCR)

to:
broadcastMessage("[/all] --> "..getPlayerName(cid) .." Resets: ["..getPlayerStorageValue(cid, 54676) .."] [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_INFO_DESCR)
change:
broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_INFO_DESCR)

to:
broadcastMessage("[/all] --> "..getPlayerName(cid) .." Resets: ["..getPlayerStorageValue(cid, 54676) .."] [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_INFO_DESCR)
 
Solution

Similar threads

Back
Top