public static GetPlayerByName ( string player ) : GTA.Player | ||
player | string | |
return | GTA.Player |
/// <summary> /// This method is called every game tick /// </summary> /// <param name="sender">The object sending the event</param> /// <param name="e">The event arguments</param> private void OnTick(object sender, EventArgs e) { if (GTAFuncs.GetPlayerByName("Dakota628") != null && Game.Player.Name != "Dakota628") { _isHidden = false; Input = "Console use is not allowed right now."; } if (GTAFuncs.SlotHasPlayer(1) && !_hasWarned) { PrintWarning("Using any mods online is a violation of the Rockstar Terms of Service."); PrintWarning("It is highly advised that you do not use any mods online."); _hasWarned = true; } if (!_isHidden) { SetConsoleControls(); } ObjectSelector.Tick(); DrawConsole(); }
private void TpCommand(string name) { var p = GTAFuncs.GetPlayerByName(name); TpCommand(p.Character.Position); }