1268995
Member
- Joined
- Sep 9, 2010
- Messages
- 422
- Reaction score
- 13
I need help in a script!
I want to my premium players shine when log in.. I mean, i want that all other players know that some players are premium.
I taked a lot of parts of a lot of other script and maded that:
For sure this code do not work, i have no idea about that function while a =1 (lol)... i just make a fusion of script and this are not working out.
Edit: i putted 2 functions togheter (onlogin and effect)... it's possible?
Please help!
I want to my premium players shine when log in.. I mean, i want that all other players know that some players are premium.
I taked a lot of parts of a lot of other script and maded that:
Code:
local efeito1 = 30 -- efect that will stay for 30 minutes
local timeEffect = 1801 -- efect that will appear in player, 31 = 30 secunds.Always put 1 second more
function onLogin(cid)
function effect()
if isPlayer(cid) then
local pos = getCreaturePosition(cid)
doSendMagicEffect(pos, efeito1)
end
a = 1
while a ~= timeEffect do
addEvent(effect, a * 1000)
a = a + 1
end
end
return true
end
For sure this code do not work, i have no idea about that function while a =1 (lol)... i just make a fusion of script and this are not working out.
Edit: i putted 2 functions togheter (onlogin and effect)... it's possible?
Please help!
Last edited: