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

Color outfit onLogin

Optus

GeorgeB.
Joined
Aug 30, 2011
Messages
390
Reaction score
12
Location
Australia
Hello otland
I have a script which i dont know how to script so if someone could help me it would be great.

I want it so if a player has XXXX storage onLogin will get all white color outfit

and if they have XXXX storage onLogin they will get all black color outfit.

Thanks
 
You may not bump your thread within 24 hours since the last post.
anyways, try this:
Lua:
local t = {
      stg1 = 1000,
      stg2 = 1001
     }
local conditionBlack = createConditionObject(CONDITION_OUTFIT)
        setConditionParam(conditionBlack, CONDITION_PARAM_TICKS, 1800 * 1000)
        addOutfitCondition(conditionBlack, {lookType = 152, lookHead = 114, lookBody = 114, lookLegs = 114, lookFeet = 114})
local conditionWhite = createConditionObject(CONDITION_OUTFIT)
        setConditionParam(conditionWhite, CONDITION_PARAM_TICKS, 1800 * 1000)
        addOutfitCondition(conditionWhite, {lookType = 143, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
function onLogin(cid)
         if getPlayerStorageValue(cid, t.stg1) == 1 then
         doAddCondition(cid, conditionBlack)
             elseif getPlayerStorageValue(cid, t.stg2) == 1 then
         doAddCondition(cid, conditionWhite)
         end
  return TRUE
end
 
Back
Top