Set temporary auth level to use an admin command?Solved
Hey, so my plugin currently tells the target player to run the ddraw command

targetPlayer.Command("ddraw.text ", time, color, pos, text);

ddraw is limited to admins only though, so how could I grant temp access so the command could be used?
It is a client side command. So, in fact, if you Grant an admin for it, it would be really dangerous, even for some ms. Player can, for example, make fake lags or something and in fact use legal debug camera or do something worse.
But if you still want to do that, take a look at Dangerous Treasures, there is something like that
In response to misticos ():
It is a client side command. So, in fact, if you Grant an admin for it, it would be really dangerous...
Is there another way I could allow the player to do it?
In response to Wxll ():
Is there another way I could allow the player to do it?
  • set the "IsAdmin" flag
  • instant-networkupdate that player
  • do the needed action
  • force unset the "IsAdmin" flag
  • instant-networkupdate that player
5b3cf8f46c05c.png FuJiCuRa
  • set the "IsAdmin" flag
  • instant-networkupdate that player
  • do the needed action
  • force unset the "IsAdmin" flag
  • instant-networkupdate that player

i know this is an old post but it might solve my issue, where might i find "instant-networkupdate", i cant seem to find it in BasePlayer or anywhere else and googling only leads to this post


edit: i think i may have found it in player.SendNetworkUpdate();

player.SendNetworkUpdateImmediate()
5f1792699e67b.jpg WhiteThunder
player.SendNetworkUpdateImmediate()

thank you :)

Locked automatically