Beispiel #1
0
 public static void OnPlayerDisconnected(PlayerBlipEntity player, string reason)
 {
     try
     {
         Alt.EmitAllClients("PlayerBlips:Delete", player.Id);
     }
     catch { }
 }
Beispiel #2
0
 private static int GetPlayerColor(PlayerBlipEntity player)
 {
     // If Random Color activated
     if (RandomColor)
     {
         if (player.Color != StandardColor)
         {
             return(player.Color);
         }
         // Get Random Color from our list.
         Random random = new Random();
         player.Color = random.Next(0, RandomBlipIntegers.Count);
         return(player.Color);
     }
     return(StandardColor);
 }