19 lines
547 B
Plaintext
19 lines
547 B
Plaintext
/*
|
|
File: fn_wantedRemove.sqf
|
|
Author: Bryan "Tonic" Boardwine"
|
|
Database Persistence By: ColinM
|
|
Assistance by: Paronity
|
|
Stress Tests by: Midgetgrimm
|
|
|
|
This file is for Nanou's HeadlessClient.
|
|
|
|
Description:
|
|
Removes a person from the wanted list.
|
|
*/
|
|
private ["_uid","_query"];
|
|
_uid = [_this,0,"",[""]] call BIS_fnc_param;
|
|
if (_uid isEqualTo "") exitWith {}; //Bad data
|
|
|
|
_query = format ["UPDATE wanted SET active = '0', wantedCrimes = '[]', wantedBounty = 0 WHERE wantedID='%1'",_uid];
|
|
[_query,2] call HC_fnc_asyncCall;
|