Quote:
|
Originally Posted by Chicken_l33t
//#CLIENTSIDE
if (created){
timeout = .05;
}
if (timeout){
if (mousex in |playercraphere,playercraphere| && mousey in|playercraphere,playercraphere|){
setplayerprop #c,#a; // #c is the players chat and #a is account
}
timeout = .05;
}
// You have to have timeout = .05; inside the timeout itself for it to loop.
Ohh, and if this is to test another player and not yourself you're best using testplayer(x,y);
|
Stop giving bad advice...
That will still work but it is bad scripting.
Anyway, you need to iterate through 'playerscount' and check the mousex/y in players[index].x/y. Then display the account using #a(index).