![]() |
help with hasright()
I tried searching on this, but I guess it doesn't work for old threads. Can someone please explain to me how this function works? All help is appreciated.
|
Um... as far as I know, Stefan mentioned that being available in 3.1, which we don't have yet.
|
Quote:
|
if (hasright(rw,WEAPONS/control-NPC)) { set client.has-rw-2-controlnpc; }
:) |
Quote:
|
Quote:
Quote:
|
Quote:
Thanks a bunch. :D However, how do I check if a person has a certain right checked and not just folder rights? |
Quote:
|
To my knowledge there is no way to see if they have a checked right, only folder rights as osrs said.
|
Quote:
|
Its simple.
Its simply checking for which folder right you have. 1st part: rw - The person can read and write to that folder. r - The person can only read the contents of the folder. The second part is just the route to the folder. i.e. Levels/guilds. Also: In malinko's post you don't have to set a flag, thats only an example :) |
Quote:
|
Wow I really have a problem of skim-reading x.x
Sorry. |
That's what you get for doing...DRUGS! *Hears screaming the background*...O_o...I'll shut up.
|
if (hasright(WEAPONS/Ning/Drugs)) { disconnectplayerfordoingdrugs(); }
:) |
I think it is an useless thing, why would anyone use it? hehe.
|
The command? Its more useful than some people may think.
|
| All times are GMT +2. The time now is 10:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.