| Blockland Forums > Modification Help |
| GameConnection::onConnectRequest |
| << < (2/2) |
| Irk89:
--- Code: ---package reserve { function GameConnection::onConnectRequest(%this,%a,%b,%c,%d) { echo(%this TAB %a TAB %b TAB %c TAB %d); Parent::onConnectRequest(%this,%a,%b,%c,%d); } }; activatePackage(reserve); --- End code --- Ok using this, the variables are as follows: * %this = client * %a = LAN Name * %b = Net Name * %c = Clan Tag * %d = Other Clan Tag The rest were "unknown" displayed as ^ |
| Irk89:
alright, sorry I just got it working. With this code: --- Code: ---package reserve { function GameConnection::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2) { echo("CONNECT REQUEST"); Parent::onConnectRequest(%this,%lanname,%netname,%clantag1,%clantag2); } }; activatePackage(reserve); --- End code --- Thanks Zor, I shall continue writing my reserved slots script and maybe release it soon. |
| Space Guy:
I think MrWallet has a Reserved Slot script. Maybe ask him, see whether he'll tell you how he did it? |
| Irk89:
That's alright. I'm almost done scripting it now... Just adding the final touches :) |
| Navigation |
| Message Index |
| Previous page |