Jump to content
  • 0

Need help with my new script.


lmapper

Question

What's wrong, guys ?

Action just dont appear when player got hemp.

 

fn_selfactions.sqf

if ("ItemKiloHemp" in _mags) then { // KiloHempScript by me :D
	if (s_player_hemp < 0) then {
		s_player_hemp = player addaction["Smoke hemp","scripts\hemp.sqf","",2,false,true,"", ""];
	} else {
		player removeAction s_player_hemp;
		s_player_hemp = 		-1;
	};
};
Link to comment
Share on other sites

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...