AMARANT Posted April 28, 2011 Share Posted April 28, 2011 Hello everyone. Please tell me how can I do on my server opened buildings, shops, pay-n-sprays, barber, etc.? Like in original game all these buildings are opened and I can enter them with yellow marker. Link to comment
0 Arran Posted April 28, 2011 Share Posted April 28, 2011 start interiors The resource called interiors will let you enter many buildings. To open garages you need something that will open them like: for i=1, 49 do setGarageOpen(i, true) end Put that code inside one of your resources .lua files and restart the resource for all garages to be open (but pay and spray won't work, you need a community resource that does that) Link to comment
0 AMARANT Posted April 28, 2011 Author Share Posted April 28, 2011 Thanks, it's helped. And tell me please one more thing. How can I make icons on the map for those buildings I told you at first post? Link to comment
0 GodFather Posted April 28, 2011 Share Posted April 28, 2011 You mean this? https://wiki.multitheftauto.com/wiki/CreateBlip Link to comment
0 AMARANT Posted April 29, 2011 Author Share Posted April 29, 2011 Thank you this is it) And i'd like to know how to deny effects of spraycan. I mean damage and cough when player hit. Link to comment
0 Arran Posted April 29, 2011 Share Posted April 29, 2011 function stopSprayDamage ( attacker, weapon ) if ( weapon == 41 ) then cancelEvent() end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopMinigunDamage ) Add that to a client side script and restart the resource Link to comment
0 Perfect Posted January 28, 2013 Share Posted January 28, 2013 Bump!, that will not work because functions name is stopSprayDamage and in Event handler its name is stopMinigunDamage. change stopMinigunDamage to stopSprayDamage or stop SprayDamage to stopMinigunDamage. Link to comment
Question
AMARANT
Hello everyone. Please tell me how can I do on my server opened buildings, shops, pay-n-sprays, barber, etc.? Like in original game all these buildings are opened and I can enter them with yellow marker.
Link to comment
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now