I want to make a function that will combine these 2 things.
1.Connections[GetConnIdx(MSO.UCID)].IsAdmin
which means Admin with server password
and this
2.Connections[GetConnIdx(MSO.UCID)].CanBeAdmin
which means Admin based on admins.txt file.
How can i do something like IsPlayerAdmin(Connections[GetConnIdx(MSO.UCID)])
which will have
I am new to C#, so i dont know how to make it. Could you give me an example please?
1.Connections[GetConnIdx(MSO.UCID)].IsAdmin
which means Admin with server password
and this
2.Connections[GetConnIdx(MSO.UCID)].CanBeAdmin
which means Admin based on admins.txt file.
How can i do something like IsPlayerAdmin(Connections[GetConnIdx(MSO.UCID)])
which will have
Connections[GetConnIdx(MSO.UCID)].IsAdmin == 1 || Connections[GetConnIdx(MSO.UCID)].CanBeAdmin == 1
I am new to C#, so i dont know how to make it. Could you give me an example please?