Beispiel #1
0
 public static bool Save(this GTANetworkAPI.Client player)
 {
     if (player.Account() == null)
     {
         return(false);
     }
     return(player.Account().Save());
 }
Beispiel #2
0
 public static Vector3 GetLastPosition(this GTANetworkAPI.Client player)
 {
     if (player.Account() == null)
     {
         return(null);
     }
     return(player.Account().LastPosition);
 }
Beispiel #3
0
        public static CItem GiveItem(this GTANetworkAPI.Client player, uint item, byte?x = null, byte?y = null)
        {
            if (player.Account() == null)
            {
                return(null);
            }

            return(player.Account().Inventory.GiveItem(item, x, y));
        }
Beispiel #4
0
        public static bool GiveItem(this GTANetworkAPI.Client player, CItem item, byte?x = null, byte?y = null)
        {
            if (player.Account() == null)
            {
                return(false);
            }

            return(player.Account().Inventory.GiveItem(item, x, y));
        }
Beispiel #5
0
        public static CItem GetItemBySlot(this GTANetworkAPI.Client player, byte x, byte y)
        {
            if (player.Account() == null)
            {
                return(null);
            }

            return(player.Account().Inventory.GetItemBySlot(x, y));
        }
Beispiel #6
0
        public static int GetFreeSlots(this GTANetworkAPI.Client player)
        {
            if (player.Account() == null)
            {
                return(0);
            }

            return(player.Account().Inventory.FreeSlots);
        }
Beispiel #7
0
        public static void CleanUp(this GTANetworkAPI.Client player)
        {
            //Globals.Systems.publicVehicles.ClearPlayerPublicVehicle(player);
            Globals.Managers.admin.StopDuty(player);

            if (player.Account() == null)
            {
                return;
            }

            player.Account().CleanUp();
        }
Beispiel #8
0
 public static bool IsLoggedIn(this GTANetworkAPI.Client player)
 {
     return(player.Account() != null);
 }