Example #1
0
        private void InitPlayer(Vector3 coords, float heading, bool isdead)
        {
            Function.Call(Hash.SET_MINIMAP_HIDE_FOW, true);
            PlayerActions.TeleportToCoords(coords.X, coords.Y, coords.Z, heading);

            if (GetConfig.Config["ActiveEagleEye"].ToObject <bool>())
            {
                Function.Call((Hash)0xA63FCAD3A6FEC6D2, API.PlayerId(), true);
            }

            if (GetConfig.Config["ActiveDeadEye"].ToObject <bool>())
            {
                Function.Call((Hash)0x95EE1DEE1DCD9070, API.PlayerId(), true);
            }

            setPVP();

            if (isdead)
            {
                TriggerServerEvent("vorp:PlayerForceRespawn");
                TriggerEvent("vorp:PlayerForceRespawn");
                RespawnSystem.resspawnPlayer();
            }

            firstSpawn = false;
        }
Example #2
0
        private void InitPlayer(Vector3 coords, float heading, bool isdead)
        {
            PlayerActions.TeleportToCoords(coords.X, coords.Y, coords.Z, heading);

            if (isdead)
            {
                TriggerServerEvent("vorp:PlayerForceRespawn");
                TriggerEvent("vorp:PlayerForceRespawn");
                RespawnSystem.resspawnPlayer();
            }
        }