Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 public void stop(GTANetworkAPI.Player client)
 {
     client.TriggerEvent("HorseRace:stopClient");
 }
Exemplo n.º 4
0
 public void sync(GTANetworkAPI.Player client, bool isFirstSync = false)
 {
     client.TriggerEvent("HorseRace:syncClient", this.roll.json, isFirstSync);
 }