juandayz Posted September 18, 2017 Author Report Share Posted September 18, 2017 if dsnt work.. try replace this code in fn_selfactions.sqf Spoiler if (needsex) then { if (_cursorTarget isKindOf ["Hooker1","Hooker2","Hooker3","Hooker4"]) then { if (s_player_hooksex < 0) then { s_player_hooksex = player addAction [("<t color=""#3399cc"">" + ("Hooker Sex!") + "</t>"), "scripts\zims\sexscripts\sexhooker.sqf",cursorTarget, 0, false, true, "",""];}; } else { player removeAction s_player_hooksex; s_player_hooksex = -1; }; }; by: Spoiler if (needsex) then { if((typeOf _cursorTarget) in DZE_Hookers)then{ if (s_player_hooksex < 0) then { s_player_hooksex = player addAction [("<t color=""#3399cc"">" + ("Hooker Sex!") + "</t>"), "scripts\zims\sexscripts\sexhooker.sqf",cursorTarget, 0, false, true, "",""];}; } else { player removeAction s_player_hooksex; s_player_hooksex = -1; }; }; and in somewhere of your custom variables.sqf (dsnt matter where) add: DZE_Hookers =["Hooker1","Hooker2","Hooker3","Hooker4"]; saskiwi 1 Link to comment Share on other sites More sharing options...
saskiwi Posted September 18, 2017 Report Share Posted September 18, 2017 1 hour ago, juandayz said: if dsnt work.. try replace this code in fn_selfactions.sqf Hide contents if (needsex) then { if (_cursorTarget isKindOf ["Hooker1","Hooker2","Hooker3","Hooker4"]) then { if (s_player_hooksex < 0) then { s_player_hooksex = player addAction [("<t color=""#3399cc"">" + ("Hooker Sex!") + "</t>"), "scripts\zims\sexscripts\sexhooker.sqf",cursorTarget, 0, false, true, "",""];}; } else { player removeAction s_player_hooksex; s_player_hooksex = -1; }; }; by: Hide contents if (needsex) then { if((typeOf _cursorTarget) in DZE_Hookers)then{ if (s_player_hooksex < 0) then { s_player_hooksex = player addAction [("<t color=""#3399cc"">" + ("Hooker Sex!") + "</t>"), "scripts\zims\sexscripts\sexhooker.sqf",cursorTarget, 0, false, true, "",""];}; } else { player removeAction s_player_hooksex; s_player_hooksex = -1; }; }; and in somewhere of your custom variables.sqf (dsnt matter where) add: DZE_Hookers =["Hooker1","Hooker2","Hooker3","Hooker4"]; ty for quick post have put it in server this one works no errors gonna make players very happy tyvm im off to work now love this not sure y more servers not running this script juandayz 1 Link to comment Share on other sites More sharing options...
juandayz Posted September 18, 2017 Author Report Share Posted September 18, 2017 Just now, saskiwi said: ty for quick post have put it in server this one works no errors gonna make players very happy tyvm im off to work now love this not sure y more servers not running this script try this one if u want that hooker ask for money sexhooker.sqf Spoiler private ["_cost","_coins","_humanity","_ImUsingCoins"]; _ImUsingCoins = true;//set as false if ure using gold system if (_ImUsingCoins) then { _cost = 500; _coins = player getVariable [Z_moneyVariable,0]; if (_coins < _cost) exitWith { cutText[format["You need %1 coins",_cost], "PLAIN DOWN"]; }; systemChat format["HOOKER:%1 you pay %2 coins",name player,_cost]; player setVariable[Z_moneyVariable, (_coins - _cost), true]; }else{ _cost = "ItemSilverBar10oz" in magazines player; if !(_cost) exitWith { cutText [format["You needs 1x ItemSilverBar10oz."], "PLAIN DOWN"]; }; player removeMagazine "ItemSilverBar10oz"; }; player removeAction s_player_hooksex; s_player_hooksex = -1; disableuserinput true; disableuserinput true; disableuserinput true; cutText ["TAKE YOUR TIME LIL PIG", "BLACK FADED"]; _humanity = player getVariable['humanity',0]; player setVariable['humanity',_humanity+20,true]; systemChat ("that hooker smell like haven"); sleep 5; titleCut ["", "BLACK IN", 5]; disableuserinput false;disableuserinput false;disableuserinput false; needsex = false; Hooty, gernika and saskiwi 2 1 Link to comment Share on other sites More sharing options...
saskiwi Posted September 18, 2017 Report Share Posted September 18, 2017 49 minutes ago, juandayz said: try this one if u want that hooker ask for money sexhooker.sqf Hide contents private ["_cost","_coins","_humanity","_ImUsingCoins"]; _ImUsingCoins = true;//set as false if ure using gold system if (_ImUsingCoins) then { _cost = 500; _coins = player getVariable [Z_moneyVariable,0]; if (_coins < _cost) exitWith { cutText[format["You need %1 coins",_cost], "PLAIN DOWN"]; }; systemChat format["HOOKER:%1 you pay %2 coins",name player,_cost]; player setVariable[Z_moneyVariable, (_coins - _cost), true]; }else{ _cost = "ItemSilverBar10oz" in magazines player; if !(_cost) exitWith { cutText [format["You needs 1x ItemSilverBar10oz."], "PLAIN DOWN"]; }; player removeMagazine "ItemSilverBar10oz"; }; player removeAction s_player_hooksex; s_player_hooksex = -1; disableuserinput true; disableuserinput true; disableuserinput true; cutText ["TAKE YOUR TIME LIL PIG", "BLACK FADED"]; _humanity = player getVariable['humanity',0]; player setVariable['humanity',_humanity+20,true]; systemChat ("that hooker smell like haven"); sleep 5; titleCut ["", "BLACK IN", 5]; disableuserinput false;disableuserinput false;disableuserinput false; needsex = false; works a1 tyvm juandayz 1 Link to comment Share on other sites More sharing options...
saskiwi Posted September 18, 2017 Report Share Posted September 18, 2017 im sure if u add hookers to script as an update many ppl would like it script runs awesome ty, players were happy about having them work and asked if there was a way to make cost coins. i have told them it tkx to u and will place credit for script to u on our website with other script credits juandayz 1 Link to comment Share on other sites More sharing options...
Relentless Posted September 18, 2017 Report Share Posted September 18, 2017 @saskiwi You should add a space between the "Hooker:" and the name of the player so it looks like: systemChat format["HOOKER: %1 you pay %2 coins",name player,_cost]; saskiwi 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now