ID:161849
 
Hello I hope someone here can help me.

I have made a game with an OOC channel and have set it up so the user's icon is a client topic href so when you click the icon information such as key, name, level are all displayed as a usr<< text.

Now what I am having trouble with is I want to make it so that if the user clicking the icon is a GM they not only get all the same info that the normal user gets but the Ip address, location and so on.

I just do not understand how I can make it work this way. It be nice if someone can write me up a simple script that would work this way I think I can tweak it to work the way I wish if I could get an example. :-P
Im not sure if this would work but maby somthing like this?

if(usr=Gm)
usr<<"[src]'s ip = [IP]"
//not sure if you can have their location on here tho...


reply if it works :P lol
In response to RanEsu
That did not seem to work. That is because GM is a var as well. Though I changed it up a bit because I had a random idea and used if(!usr.GM) along with the else tag and that seems to have done what I wish im going to toy around with it a bit more and see what I get. Thank you for the reply. :D
In response to Smugyx
glad i could spark a random idea, this is the first time ive helped anyone :P
lol