Autor: legolas23 Źródło: | Kilik

Licencja: Nie ma.

Zamieścił: kielb

Wchodzimy do katalogu /data/movements/scripts/ i tworzymy katalog vipbridge.lua

function onStepIn(cid, item, position, fromPosition)
local config = {
uniqueid = 1234,   ---item unique id
vipstorage = 1234, ---- storage of vip player
kickpos = {x=1232, y=234, z=234, stackpos=1 } --- position where non vip player will be kicked
    if(item.uid == config.uniqueid) then
        if (getPlayerStorageValue(cid, config.vipstorage) == 0) then
			doTeleportThing(cid, config.kickpos)
			doCreatureSay(cid, "Only Vip players can pass here!, TALKTYPE_ORANGE_2, getCreaturePosition(cid))
			doPlayerSendTextMessage(cid, 20, 'Hiho vip Player!')		
return TRUE

Nastepnie do /data/movements/movements.xml i dodajemy linijkę

<movevent type="StepIn" itemid="UNIQUEID HERE" event="script" value="vipbridge.lua"/>
otspub/vip_most_by_legolas23.txt · Last modified: 2010/04/28 15:45 by kielb
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki