first of all, i must say that i know allmost nothing of scripting.
this script consist in removing someones vip vocation when his vip days finishes. the npc that gives vip promotions will be in the vip area.
heres the script:
i just copied one script and replace some things.
instead of: StdModule.promotePlayer
i putted: StdModule.demotePlayer
i think its wrong. please help. if ur gonna coment that i am a noob please dont comment =P.
this script consist in removing someones vip vocation when his vip days finishes. the npc that gives vip promotions will be in the vip area.
heres the script:
PHP:
function onThink(cid, item, fromPosition, toPosition)
for _, name in ipairs(getOnlinePlayers()) do
local player = getPlayerByName(name)
if getPlayerStorageValue(player,11551) == 1 then
StdModule.demotePlayer
end
end
end
i just copied one script and replace some things.
instead of: StdModule.promotePlayer
i putted: StdModule.demotePlayer
i think its wrong. please help. if ur gonna coment that i am a noob please dont comment =P.