public void run() { // 1. Load players LoadPlayer loadPlayer = new LoadPlayer(); List<Player> players = loadPlayer.loadAll(); // 2. Run tournament Tournament tournament = new Tournament(players); tournament.selectPools(); tournament.match(); }
private static void Poncho() { if (Function.Call <bool>((Hash)0xFB4891BD7578CDC1, API.PlayerPedId(), 0xAF14310B)) { Function.Call((Hash)0xD710A5007C2AC539, API.PlayerPedId(), 0xAF14310B, 0); } else { Function.Call((Hash)0xD3A7B003ED343FD9, API.PlayerPedId(), LoadPlayer.ConvertValue(LoadPlayer.cache_cloths["Poncho"].ToString()), true, true, false); } Function.Call((Hash)0xCC8CA3E88256E58F, API.PlayerPedId(), 0, 1, 1, 1, 0); }
public void userInput(bool load) { errorMessage.text = ""; if (input.text != "") { if (input.text.ToLower() == "dave") { errorMessage.text = "I'm sorry dave, I'm afraid I can't do that."; print("I'm sorry dave, I'm afraid I can't do that."); } else { print("Character name set to: " + input.text); player.playerName = input.text; player.exp = 1; loadPlayer = loadSave.GetComponent <LoadPlayer>(); if (load) { bool playerFound = loadPlayer.load(); if (playerFound) { questionOne.SetActive(false); loadOptions.SetActive(true); } else { errorMessage.text = "Player file not found!"; } } else { if (!loadPlayer.load()) { questionOne.SetActive(false); createOptions.SetActive(true); } else { errorMessage.text = "Player already exists!"; } } } } else { errorMessage.text = ("Error, nothing was put in!"); } }
private static void Rings() { if (Function.Call <bool>((Hash)0xFB4891BD7578CDC1, API.PlayerPedId(), 0x7A6BBD0B)) { Function.Call((Hash)0xD710A5007C2AC539, API.PlayerPedId(), 0x7A6BBD0B, 0); } else { Function.Call((Hash)0xD3A7B003ED343FD9, API.PlayerPedId(), LoadPlayer.ConvertValue(LoadPlayer.cache_cloths["RingRh"].ToString()), true, true, false); } if (Function.Call <bool>((Hash)0xFB4891BD7578CDC1, API.PlayerPedId(), 0xF16A1D23)) { Function.Call((Hash)0xD710A5007C2AC539, API.PlayerPedId(), 0xF16A1D23, 0); } else { Function.Call((Hash)0xD3A7B003ED343FD9, API.PlayerPedId(), LoadPlayer.ConvertValue(LoadPlayer.cache_cloths["RingLh"].ToString()), true, true, false); } Function.Call((Hash)0xCC8CA3E88256E58F, API.PlayerPedId(), 0, 1, 1, 1, 0); }
// Use this for initialization void Start() { playerManager = GameObject.FindWithTag("PlayerManager"); lp = playerManager.gameObject.GetComponent <LoadPlayer>(); lp.LoadPlayerData(); }