Пример #1
0
        public static RequestRespawnPlayer SendNormalRespawn(string userId, string adminToken, string userIDToRespawn,
                                                             Occupation occupation)
        {
            var msg = new RequestRespawnPlayer
            {
                Userid              = userId,
                AdminToken          = adminToken,
                UserToRespawn       = userIDToRespawn,
                OccupationToRespawn = occupation.name,
                Type = 0
            };

            msg.Send();
            return(msg);
        }
Пример #2
0
        public static RequestRespawnPlayer SendAntagRespawn(string userID, string adminToken, string userIdTorespawn,
                                                            Antagonist antagonist)
        {
            var msg = new RequestRespawnPlayer()
            {
                Userid              = userID,
                AdminToken          = adminToken,
                UserToRespawn       = userIdTorespawn,
                OccupationToRespawn = antagonist.AntagName,
                Type = 2
            };

            msg.Send();
            return(msg);
        }