04-06-2012, 21:38
(03-30-2012, 22:58)yamraj Wrote:I haven't tested it. does it work with OnPlayerSpawned() ?!(03-29-2012, 23:43)atenziono Wrote:It will not work OnPlayerConnect.Code:using System; using System.Collections.Generic; using Addon; namespace plugin_test { public class plugin_test : CPlugin { public override void OnPlayerConnect(ServerClient Client) { if (Client.XUID == "adminsxuid") { Client.SpectateType = SpectateTypes.AllTeams; } } } }
tnx in advance


![[Image: back_us_button.png]](http://static.squarespace.com/static/51cca4bae4b0bf9a1f4deb75/t/52ea6a9ee4b0f767960f8c35/1390493521990/back_us_button.png)
as well..