From RAGE Multiplayer Wiki
|
|
| (3 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| Checks whether a player has access to the given command based on the ACL.
| |
|
| |
|
| ==Syntax==
| |
| <pre>bool NAPI.ACL.DoesPlayerHaveAccessToCommand(Client player, string command);</pre>
| |
|
| |
| === Required Arguments ===
| |
| *'''player:''' parameter input should be in '''Client''' type
| |
| *'''command:''' parameter input should be in '''string''' type
| |
|
| |
| ==Example==
| |
| {{CSharpContainer|
| |
| {{Parameters}}
| |
| *'''player:''' parameter input should be in '''Client''' type
| |
| *'''command:''' parameter input should be in '''string''' type
| |
|
| |
| {{Example}}
| |
| <syntaxhighlight lang="C#">
| |
| if (NAPI.ACL.DoesPlayerHaveAccessToCommand(player, "kick")) {
| |
| // Do stuff...
| |
| }
| |
| </syntaxhighlight>
| |
| }}
| |
|
| |
| [[Category:Serverside API]]
| |
Latest revision as of 20:42, 27 November 2019