예제 #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);
 }
예제 #2
0
 public void OnPlayerSpawned(Player player, SpawnEvent evt)
 {
     Invoke("On_PlayerSpawned", player, evt);
 }
예제 #3
0
파일: Hooks.cs 프로젝트: balu92/Fougerite
 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);
     }
 }
예제 #4
0
파일: Hooks.cs 프로젝트: balu92/Fougerite
 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;
 }
예제 #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);
     }
 }