From 8b21d094cef54759ea032a0c793e39aec1b7a6d6 Mon Sep 17 00:00:00 2001 From: happydayz Date: Sat, 3 Sep 2016 14:34:44 +1000 Subject: [PATCH] ooooooooo --- @Enigma/addons/enigma_exile_revive.pbo | Bin 14913 -> 14853 bytes .../compile/Enigma/Exile_RevivePlayer.sqf | 1 - Exile.Altis/Custom/EnigmaRevive/init.sqf | 17 ++++++++++------- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/@Enigma/addons/enigma_exile_revive.pbo b/@Enigma/addons/enigma_exile_revive.pbo index 9fca2ba7922b1b24e60afe4bfc05c28964e1adbe..6937459e2de15f4f8b9691d03fa822d0ec730a12 100644 GIT binary patch delta 50 zcmX?D(poa1kyqK60Sx}#I~A_HvG1eF=G~@6EFv;y-|lNW7fz{6$Q78Bd@;vPqV*R5 D>D&}c delta 108 zcmZoIIao5GkvHC$0Suh4oC=TM*!R)IGCIB}wXig`xFj<#Js>BsGPNjHAuB&KFE}$N zHLpa$wE{>7rxul^7P%KCmZerE7Nxis<(C#%Z>}*dWf8G7Zd(-d<-gG+(d|2@X8MRP IGzgUg0MR5WS^xk5 diff --git a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf b/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf index 0ffdfd1..227223c 100644 --- a/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf +++ b/@Enigma/addons/enigma_exile_revive/compile/Enigma/Exile_RevivePlayer.sqf @@ -329,7 +329,6 @@ call ExileServer_system_network_send_to; [_sessionID, _player] call ExileServer_system_session_update; - [_requestingPlayer] joinSilent ExileServerGraveyardGroup; deleteVehicle _requestingPlayer; EnigmaRevive = [_player,_requestingPlayer]; diff --git a/Exile.Altis/Custom/EnigmaRevive/init.sqf b/Exile.Altis/Custom/EnigmaRevive/init.sqf index 882c5a7..3506767 100644 --- a/Exile.Altis/Custom/EnigmaRevive/init.sqf +++ b/Exile.Altis/Custom/EnigmaRevive/init.sqf @@ -64,13 +64,16 @@ player setVariable["antidupe", 1, true]; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////EventHandlers////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -"EnigmaRevive" addPublicVariableEventHandler { -private["_newPlayerObject","_oldPlayerObject","_packet","_weapon","_reviver"]; -_packet = _this select 1; -_newPlayerObject = _packet select 0; -_oldPlayerObject = _packet select 1; - - deleteVehicle _oldPlayerObject; //because the server doesnt seem to be doing its job +"EnigmaRevive" addPublicVariableEventHandler +{ + private["_newPlayerObject","_oldPlayerObject","_packet","_weapon","_reviver"]; + _packet = _this select 1; + _newPlayerObject = _packet select 0; + _oldPlayerObject = _packet select 1; + if !(isNil "_oldPlayerObject") then + { + deleteVehicle _oldPlayerObject; //because the server doesnt seem to be doing its job + }; if (alive _newPlayerObject) then { if (isPlayer _newPlayerObject) then