Working on Portals, related questions
#1
Hi.
Because ChestShop can't be done right now, I switched my attention at portals plugin.
Idea is: you create a warp (exit) point, then you select an entrance volume using wooden sword, add some chat command magic and TADA - you got one-way portal, which could be used for both in-world and interworld travels.

If you need two-way portal, you simply create warp points inside two entrances and link them cross-like.

Right now I faced a problem: I can't get player's name inside OnBlockPlace() hookBig Grin

Simple code like this:
Code:
function OnBlockPlace(PacketData, Player)    -- RIGHTCLICK!
    LOG("PLAYER NAME IS: "..Player:GetName())
    return false
end
Gave me an error like that:
Code:
-- Plugins/Portal/portal_main.lua:73: attempt to index local 'Player' (a number value)

Whose fault it that and how to fix it? Blush
Reply
Thanks given by:


Messages In This Thread
Working on Portals, related questions - by Taugeshtu - 09-03-2012, 03:37 AM



Users browsing this thread: 1 Guest(s)