public void removeViewer(GTANetworkAPI.Player client) { if (this.clients.Contains(client)) { NAPI.Notification.SendNotificationToPlayer(client, "~g~[Horse-Race]~s~ You have left Broadcast #" + this.id + "...", false); this.clients.Remove(client); } }
public void addViewer(GTANetworkAPI.Player client) { if (!this.clients.Contains(client)) { NAPI.Notification.SendNotificationToPlayer(client, "~g~[Horse-Race]~s~ You are now watching Broadcast #" + this.id + "...", false); this.clients.Add(client); this.sync(client, true); } }
public void stop(GTANetworkAPI.Player client) { client.TriggerEvent("HorseRace:stopClient"); }
public void sync(GTANetworkAPI.Player client, bool isFirstSync = false) { client.TriggerEvent("HorseRace:syncClient", this.roll.json, isFirstSync); }