• 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!

Give Addons With TalkActions

Joined
Sep 29, 2009
Messages
224
Reaction score
0
Example: GOD Wilker say: /addon Tunim,152,3 (For 0.3.5)

I Find One Code More Dont Work.
PHP:
function onSay(cid, words, param, channel)  
        if(param ~= "")then
                local params = list({"name", "outfit", "addon"}, string.explode(param, ",", 3))
                local player = getPlayerByName(params["name"])
                if(isPlayer(player) == true)then
                        local addon = (params["outfit", "addon"])
                        if (getNotationsCount(getPlayerAccount(player)) < 1) then
                                doPlayerAddOutfit(player, addons)
                                doPlayerSendTextMessage(player, MESSAGE_STATUS_CONSOLE_ORANGE, "You have recieved a new outfit from ".. getCreatureName(cid) ..".")
                                doSendMagicEffect(getCreaturePosition(player), CONST_ME_GIFT_WRAPS)
                        else
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player has to many notations to recieve this outfit.")
                        end
                else
                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "This player is not online.")
                end
        else
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Command requires param.")
        end
        return true
end

THX ;P
 
Back
Top