Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. //fn_adventDB.sqf
  2. params [
  3. ["_pid","",[""]]
  4. ];
  5.  
  6. _query = format ["UPDATE players SET advent = 1 WHERE pid='%1'",_pid];
  7. [_query,1] call DB_fnc_asyncCall;
  8. sleep 3;
  9.  
  10. //fn_checkAdventDB.sqf
  11. params [
  12. ["_pid","",[""]]
  13. ];
  14. _query = format ["SELECT advent FROM players WHERE pid='%1'",_pid];
  15. _queryResult = [_query,2] call DB_fnc_asyncCall;
  16. ["Törchen wird geöffnet!",1] call life_fnc_msg;
  17. sleep 2;
  18. _status = _DBadvent select 0;
  19.  
  20. if(status == 1) exitWith {
  21. [_queryResult] remoteExec ["life_fnc_advent",remoteExecutedOwner];
  22. };
  23.  
  24. if(status != 1) exitWith {
  25. //["Du hast heute bereits ein Törchen geöffnet!",1] call life_fnc_msg;
  26. hint format ["Du hast heute bereits ein Törchen auf gemacht."];
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement