![]() |
check if player is staff
hey i wanted to ask if there is such a command that checks if a player is staff written in the server options (so i donīt use like
PHP Code:
i hope there is such a command since i thought i have already seen it somewhere but could find it. it was like: PHP Code:
i hope i was clear enough what exactly i need :) -callimuc |
There's TServerPlayer.isAdmin and TServerPlayer.isStaff but I'm not sure if either work right—I've had issues with them in the past.
This will always work: PHP Code:
|
You don't have to tokenize the serveroptions staff list, it should be read as an array :)
|
Quote:
|
Quote:
PHP Code:
Quote:
|
Serveroptions are a list of strings, so of course you have to tokenize it to produce an array.
|
Quote:
Quote:
|
Quote:
PHP Code:
Quote:
|
Quote:
PHP Code:
|
so can i use like
PHP Code:
|
Quote:
PHP Code:
|
whoops ok thanks.
Quote:
|
When checking if they're Staff I like to use a clientr variable and add Staff weapons and tools accordingly.
In your Control-NPC: PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
Quote:
PHP Code:
|
All times are GMT +2. The time now is 05:11 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.