What's new

-Skrypt Skrypt na drzwi dla administracji

Status
Not open for further replies.

Avemajor

Advanced User
Joined
Feb 6, 2012
Messages
346
Reaction score
12
Witam potrzebuj? skryptu na drzwi dla administracji od ST-GOD
jest mo?e lub kto? ma taki ?
 

Flixer123

Active User
Joined
Apr 2, 2016
Messages
115
Reaction score
2
Odp: Skrypt na drzwi dla administracji

Na pewno da si? :p
Mo?esz te? zrobi? co? w stylu VIP'a tylko, ?e zamiast VIP to b?dzie Event Door ja w?a?nie tak zrobi?em u siebie bo te? szuka?em drzwi i owszem s? tematy ale robi?em jak by?o wskazane i nic nie wychodzi?o.
 

Avemajor

Advanced User
Joined
Feb 6, 2012
Messages
346
Reaction score
12
Odp: Skrypt na drzwi dla administracji

@up dzi?ki nie wpad?em na to ;)
 

reeeq

Active User
Joined
Mar 3, 2012
Messages
141
Reaction score
10
Odp: Skrypt na drzwi dla administracji

//nie testowane

Code:
function onUse(cid, item, frompos, item2, topos)
         if getPlayerAccess(cid) >= 2 then
            pos = getPlayerPosition(cid)
            if pos.x == topos.x then
               if pos.y < topos.y then
                  pos.y = topos.y + 1
               else
                  pos.y = topos.y - 1
               end
            elseif pos.y == topos.y then
                   if pos.x < topos.x then
                      pos.x = topos.x + 1
                   else
                      pos.x = topos.x - 1
                   end
            else
                doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
            return true
            end
            doTeleportThing(cid,pos)
            doSendMagicEffect(topos,12)
         else
            doPlayerSendTextMessage(cid,22,'Tylko administracja moze przechodzic przez te drzwi.')
         end
         return true
end
 

James Montana

Active User
Joined
Feb 22, 2016
Messages
103
Reaction score
1
Age
26
Odp: Skrypt na drzwi dla administracji

Robisz Poprostu zwykle drzwi jak od lvla tylko zamiast lvla dajesz
getPlayerAccess
I dzia?a
 
Status
Not open for further replies.
Top