![]() |
testplayer(mousex,mousey) problems
function onmousedown() {
mpid = testplayer(mousex,mousey); checkkey(); if (this.key = 1) { if (mpid > -1) { drawmenu(); } } } This currently works perfect if i click myself but only works on other players if they are on a gmap and not paused. How could i get around this? [Edit]: Basic info - it is clientside, checkkey just returns whether the user is holding down shift. |
Only other solution is to go through players[], like
PHP Code:
|
Does being paused render a player invisible so to say?
|
Yes, if the player is paused they are not picked up with onwall/testplayer. So Invisible, in a sense.. except for (as stefan says) with players[]
|
isnt there a command or something like ispause or onPuased()
|
NPC Code: This is what I did for a script on Era. It's a bit sloppy, but it works. |
| All times are GMT +2. The time now is 01:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.