Example #1
0
 private void PlayerSpawned(Fougerite.Player player, SpawnEvent se)
 {
     DS.Add("lastCoords", player.SteamID.ToString(), player.Location);
     DS.Add("AntiSpeedHack", player.SteamID.ToString(), 0);
 }
Example #2
0
 public void OnPlayerSpawned(Player player, SpawnEvent evt)
 {
     Invoke("On_PlayerSpawned", player, evt);
 }
Example #3
0
 public static void PlayerSpawned(PlayerClient pc, Vector3 pos, bool camp)
 {
     try
     {
         Fougerite.Player player = Fougerite.Player.FindByPlayerClient(pc);
         SpawnEvent se = new SpawnEvent(pos, camp);
         if ((OnPlayerSpawned != null) && (player != null))
         {
             OnPlayerSpawned(player, se);
         }
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
Example #4
0
 public static Vector3 PlayerSpawning(PlayerClient pc, Vector3 pos, bool camp)
 {
     try
     {
         Fougerite.Player player = Fougerite.Player.FindByPlayerClient(pc);
         SpawnEvent se = new SpawnEvent(pos, camp);
         if ((OnPlayerSpawning != null) && (player != null))
         {
             OnPlayerSpawning(player, se);
         }
         return new Vector3(se.X, se.Y, se.Z);
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
     return Vector3.zero;
 }
Example #5
0
 void OnPlayerSpawning(Fougerite.Player param0, SpawnEvent param1)
 {
     foreach (KeyValuePair<string, V8Plugin> plugin in plugins)
     {
         plugin.Value.Invoke("On_PlayerSpawned", param0, param1); // Deprecated
         plugin.Value.Invoke("OnPlayerSpawned", param0, param1);
     }
 }