Hi!
I am trying to restrict deploy bike script only for donators. This is what i have and its doesnt seem to work
fn_selfActions.sqf
near top:
These are the IDs that will be allowed to deploy a bike
Deploy bike script:
I added (getPlayerUID player) in _deploybikedonors in the if statement
Looks alright to me, why doesnt it work?
I am trying to restrict deploy bike script only for donators. This is what i have and its doesnt seem to work
fn_selfActions.sqf
near top:
Code:
_deploybikedonors = ["231720134","74271814","239981382","239982214"]
These are the IDs that will be allowed to deploy a bike
Deploy bike script:
Code:
//BIKE DEPLOY
if ("ItemToolbox" in _weapons and (getPlayerUID player) in _deploybikedonors) then {
hasBikeItem = true;
} else { hasBikeItem = false;};
if((speed player <= 1) && hasBikeItem && _canDo) then {
if (s_player_deploybike < 0) then {
s_player_deploybike = player addaction[("<t color=""#25E31B"">" + ("Deploy Bike") +"</t>"),"deploys\bike\deploy.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_deploybike;
s_player_deploybike = -1;
};
I added (getPlayerUID player) in _deploybikedonors in the if statement
Looks alright to me, why doesnt it work?