Author Topic: admins?  (Read 608 times)

0 Members and 1 Guest are viewing this topic.

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
admins?
« on: November 19, 2010, 11:57:28 pm »
question : is there a way to check if a player is an admin while itterating players in a sqs or sqf ??
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

i mss old ofp

  • Insane Joker
  • ****
  • Posts: 982
  • i love the fact that you hate me.
    • View Profile
    • TKC
Re: admins?
« Reply #1 on: November 20, 2010, 02:59:01 am »
im not fully sure if i understand the question fully , but the only way i know of checking for admin is by pressing m (map) and i think it the last section server contol , youll see admin from there. but if you qustion was thru sqs.sqf i dont think so at the moment ...but on that note a funny thing to do is take admin id , diable his userinput, and when he disconcets, disconect and rejoin with his id ...he he (youll have to be fast but hell have to reeboot his pc) when he rejoins hell get fade... but if your like me youll feel bad for a moment ..
692063616E206C6F616420612070626F6F6E2074686520666C79206C6D616F00

the joke is you!!!!

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: admins?
« Reply #2 on: November 20, 2010, 03:13:23 am »
thankyou my man so i press M and look there and it will show me the dickface i need to ban ?

btw im on msn you on or you hiding ?
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157

Pride

  • Klass Klown
  • ***
  • Posts: 332
    • View Profile
Re: admins?
« Reply #3 on: November 20, 2010, 05:02:26 am »
Try...

Code: [Select]
serverCommandAvailable "#logout"
Which should return true if the player is an admin (It checks if the command is allowed, not actually running it.)

i mss old ofp

  • Insane Joker
  • ****
  • Posts: 982
  • i love the fact that you hate me.
    • View Profile
    • TKC
Re: admins?
« Reply #4 on: November 20, 2010, 05:08:41 am »
@medic, im hanging with the lady tonight ...maybe ill be on later tonight.
692063616E206C6F616420612070626F6F6E2074686520666C79206C6D616F00

the joke is you!!!!

Coronel_Niel

  • Insane Joker
  • ****
  • Posts: 846
  • Why can't I pick my own profile picture...
    • View Profile
Re: admins?
« Reply #5 on: November 20, 2010, 02:25:10 pm »
Pride is correct.

serverCommandAvailable checks if the client is authorised to run that command. If so, they are an Admin.

Forgot about that.

It should be able to put into a if statment to run on all systems and then only ban admins. Better still, put it in an infinite loop and ban any admin as they log in.

NOTE:
RCON is seperate.
"Now we are going to watch my boys do it" - Joopig

MrMedic

  • MasstKer
  • ********
  • Posts: 8900
  • programmer/dev/software engineer
    • View Profile
Re: admins?
« Reply #6 on: November 20, 2010, 04:17:59 pm »
thats exactly what i want , to scan the players , if == allowed .. ban them ..
EnCoded Message: i3iy9yl8kr2xf3g2Txs3pr6ye3ya7jg5ty2z

https://www.youtube.com/watch?v=62_7-AYfdkQ
you need a paypal account for the private versions.

Website:
http://bit.ly/medic101

Teamspeak 3: 85.236.101.5:10157