SwapBackpack() публичный Метод

public SwapBackpack ( int num ) : bool
num int
Результат bool
Пример #1
0
 public void Execute(Player player, string[] args)
 {
     if (player.tradeTarget == null)
         if (player.SwapBackpack(Convert.ToInt32(args[0])))
             player.SendInfo("Switched to backpack #" + args[0]);
         else
             player.SendInfo("Backpack #" + args[0] + " does not exist!");
     else
         player.SendError("Cannot switch backpack while trading!");
 }