![]() |
player.level with Gmaps
Hello,
I've made a script that spy's on a player, so that hackers that can see past our alpha won't realize that we're spying on them. There's a small problem, if the person goes on a GMap, the script will show the top left of the gmap. I know how to fix that, and that is finding the level name of the "chunk" in the gmap. For example, currently player.level will show that he's in whatever.gmap. How would I show the exact level he's in, and the coordinates? e.g whatever_d6.nw |
Quote:
|
Quote:
PHP Code:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
|
Quote:
PHP Code:
This will give you the player's x/y relative to the top-left of their current level, rather than the top-left of the entire GMAP. |
Quote:
|
Hey, final problem. When I try to copy the tiles from a level on the Gmap, it doesn't work. However, when I do a normal level, it does work.
PHP Code:
PHP Code:
|
regarding level name: using player.level.name should also return the level name instead of the gmaps name
|
PHP Code:
|
Quote:
and I'm not too sure about the tile thing. maybe show us how you did the change (loops etc)? can you even read them? check that by doing something like PHP Code:
|
Quote:
|
Quote:
The best solution would be to simply calculate the offset of the player's current level on the GMAP, and figure out the tiles relative to that offset. Something like PHP Code:
Quote:
|
All times are GMT +2. The time now is 08:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.