• 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 Frags Appear After x time

cuba

New Member
Joined
Feb 24, 2015
Messages
136
Reaction score
2
hello otland i want script when player login if he have storage 2000
he need to wait x time everylogin to appear white skull

using tfs 0.4 dev
@owned
 
Last edited:
You dont need "function setSkull".. just use this:
Code:
if getPlayerStorageValue(cid, 2000) == 1 then
doCreatureSetSkullType(cid,1)
elseif getPlayerStorageValue(cid, 3000) == 1 then
doCreatureSetSkullType(cid,2)
elseif getPlayerStorageValue(cid, 4000) == 1 then
doCreatureSetSkullType(cid,3)
end

It will check storage and give a skull..
 
You dont need "function setSkull".. just use this:
Code:
if getPlayerStorageValue(cid, 2000) == 1 then
doCreatureSetSkullType(cid,1)
elseif getPlayerStorageValue(cid, 3000) == 1 then
doCreatureSetSkullType(cid,2)
elseif getPlayerStorageValue(cid, 4000) == 1 then
doCreatureSetSkullType(cid,3)
end

It will check storage and give a skull..
You do need function setSkull in order to have a wait time like he regularly requested. Not to mention the way you have the script set up, no player will ever get past white skull because 1 of 2 reasons: 1. The order in which you're checking the storages. 2. You're not setting the previous storage to 0 when advancing to the next storage.
 
You do need function setSkull in order to have a wait time like he regularly requested. Not to mention the way you have the script set up, no player will ever get past white skull because 1 of 2 reasons: 1. The order in which you're checking the storages. 2. You're not setting the previous storage to 0 when advancing to the next storage.

Oh yea, true :p
Didnt think about that ;) thanks
 
You dont need "function setSkull".. just use this:
Code:
if getPlayerStorageValue(cid, 2000) == 1 then
doCreatureSetSkullType(cid,1)
elseif getPlayerStorageValue(cid, 3000) == 1 then
doCreatureSetSkullType(cid,2)
elseif getPlayerStorageValue(cid, 4000) == 1 then
doCreatureSetSkullType(cid,3)
end

It will check storage and give a skull..
no bro i need function setSkull
because i have this on login
addEvent(setSkull, 3000, cid)
 
Back
Top