Jump to content

blanic

Member
  • Content Count

    55
  • Joined

  • Last visited

  • Medals

Everything posted by blanic

  1. It's not that this doesn't work, it doesn't work when i call it from outside the pbo, like above one folder like other scripts.
  2. I want an admin function that is not visable to the clients within the .pbo _uid = getPlayerUID vehicle player; if (_uid == "1234567") then { player addaction ["Camera", "gcam.sqf"]; };
  3. I am able to actually do it, I am able to call things, but for some reason regular code isnt working the way it should outside the PBO. I am able to call the file though from the server outside the pbo just have to figure out why it isnt calling it like it should.
  4. Below is my code, I am not sure why it is not broadcasting when the person takes the hostage, everything else works fine, just cannot get it to broadcast that they have taken the hostage nor the timer, only the person who takes it can see it. publicVariable "hostage1"; publicVariable "captivetimer"; if (isciv) then { if(alive hostage1)exitWith {player groupChat "You cannot take a hostage mission at this time";}; "TK_GUE_Soldier_5_EP1" createUnit [getmarkerpos "hostagezone", group player, "hostage1 = this"]; hostage1 allowDamage false; removeAllWeapons hostage1; playsound "Bank_alarm"; titleText [localize "Terrorists have taken a hostage, Police have 15 minutes to rescue the hostage!", "PLAIN"]; hint format ["%1 has taken a hostage, Police have 15 minutes to rescue them.",name player]; //hint "Terrorists have taken a hostage, Police have 15 minutes to rescue the hostage!"; hostage1 globalChat "Somone has taken me hostage, please rescue me within 15 minutes or they will execute me!"; captivetimer = 40; "if (isciv) then {player globalChat ""I have taken a hostage, police have 15 minutes to rescue them or they die!""};" call broadcast; "{player globalChat ""Someone is trying to take a hostage, police have 15 minutes to rescue them!""};" call broadcast; while {captivetimer > 0} do { titleText[format["Rescue time left: %1 seconds", captivetimer], "PLAIN DOWN"]; //if(captivetimer mod 30 == 0 and isServer) then {publicvariable "captivetimer";}; if(captivetimer == 1) then { //publicvariable "captivetimer"; hint "Hostage Taker Won and recieves $100000"; server globalchat "Hostage Taker Won and recieves $100000"; //if (iscop) then {Kontostand = Kontostand - 25000;}; if (isciv) then {['geld', 100000] call INV_AddInventoryItem;}; deleteVehicle hostage1; }; captivetimer = captivetimer - 1; sleep 1; if ((hostage1 distance getmarkerpos "hostagezone" > 200 and alive hostage1) or (player distance hostage1 > 100 and alive hostage1)) then { captivetimer = -1; deleteVehicle hostage1; //hint "Mission Failed You left the area"; //server globalchat "The hostage taker FAILED!"; //"{player globalChat ""I FAILED!""};" call broadcast; }; }; }; Else { hint "You are a cop, you cannot take a hostage"; };
  5. I have a new issue started 2 days ago and had to reinstall both times. There is one server when I connect to after fresh install all is fine, but the next time i try to join I get to recieving data and then it kicks after a bit with the following error. zeit ablauf be a signaturüberprüfung which google says translates to: occurring at time signature verification Any idea what file has been corrupted? ---------- Post added at 09:51 PM ---------- Previous post was at 09:48 PM ---------- Bump!!!!
×