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

functions

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,683
Solutions
36
Reaction score
388
hello guys anyone can help me in this function

function to check how many outfit i done

i need to do if u have done 1 outfit add ..... and if u done 2 outfit add ......
 
have fun :)
Code:
function Outfits(cid)
local completed = {}
local Outfits = {
    136,128,137,129,138,130,139,131,140,132,141,133,142,
    134,147,143,148,144,149,145,150,146,155,151,156,152,
    157,153,158,154,252,251,269,268,270,273,279,278,288,
    289,324,325,336,335,366,367,329,328,431,430,433,432,
    464,463,466,465,471,472,513,512,514,516,542,541}
for i = 1, #Outfits do
    if canPlayerWearOutfit(cid,Outfits[i], 3) then
        table.insert(completed, 1)
    end
end
    if #completed > 0 then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have completed " .. #completed .. "/" .. #Outfits .. " addons.")
    end
return true
end

how to use

Code:
function onSay(cid, words, param, type)
Outfits(cid)
return true
end

Code:
function onLogin(cid)
Outfits(cid)
    return true
end
 
nice script but i don't need this i need
function to know how many outfit i done because i will do outfit bouns for outfit u done
example
if u done 1 outfit will take bouns ........
if u done 2 outfit u will take bouns ........ and and ney outfit bouns
about ur script work 100%
 
Back
Top