SetUserAdmin Function

Sets a client's AdminId.

void SetUserAdmin(int client, AdminId id, bool temp)

Parameters

int client

Player's index.

AdminId id

AdminId to set. INVALID_ADMIN_ID removes admin permissions.

bool temp

True if the id should be freed on disconnect.

Errors

Invalid client index, client not connected, or bogus AdminId.