Mafia Scene - Mafia I & II Game Fan Site

Modders Corner => Mafia Editing => Mafia II mods => Topic started by: crazypreacher on November 20, 2011, 03:45:59 PM

Title: some script for mafia 2
Post by: crazypreacher on November 20, 2011, 03:45:59 PM
Scripts weather :


 




game.gfx:SetWeatherTemplate("DTFreeRideDayRain") ---rain during the day




game.gfx:SetWeatherTemplate("DTFreeRideMorning") ---morning after the rain




game.hud:TimerStop() ---disable the timer and remove from the screen




game.gfx:SetWeatherTemplate("DTFreerideNight") ---night


 


 



<hr class="bbcode_rule" />





script for money :


 




game.game:GetActivePlayer():InventoryAddMoney(1000 0) ---money ($ 1 thousand)


 



<hr class="bbcode_rule" />





script of immortality


 




game.game:GetActivePlayer():SetDemigod(true) ---immortality


 


 



<hr class="bbcode_rule" />





Police scripts :


 




ai.police:SetDensity(0) game.traffic:SetPolice(false) ---police on you does not respond


 


 



<hr class="bbcode_rule" />





Teleport Script :


 




game.game:GetActivePlayer():SetPos(Math:newVector(-1500, 0, 0)) ---Teleport - two brackets at the end is not a bug - and -1500, 0, 0 is the position of the last example is the height of toe 10 will put 10 meters in height, etc.


 


 



<hr class="bbcode_rule" />





Scripts music :


 




game.game :P layMusic("m05_Distilery_Secondfloor", true, 1, 1, 1) ---music of the mission


 


 



<hr class="bbcode_rule" />





Joe script :


 


 




Spawn Joe next to you with a weapon. Go for it you will not but if you were attacked he




would defend




Joe = game.entitywrapper:GetEntityByName("Joe")




Vito = game.game:GetActivePlayer()




Joe:SetPos(Vito:GetPos())




Joe:InventoryAddWeapon(11, 250)




Joe:InventorySelect(21, false)




Enter on each line of the queue - unzip the game and Joe will be with you


 



<hr class="bbcode_rule" />
Title: some script for mafia 2
Post by: zzzzzz2 on December 02, 2011, 01:48:23 PM
How did you find it?  (//irritated.gif)




And could you give me more?  <img src="/wp-content/uploads/invision_emoticons/smile.png" alt="(//smile.gif)" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/smile@2x.png 2x" width="20" height="20">
Title: some script for mafia 2
Post by: crazypreacher on December 02, 2011, 01:53:55 PM
http://www.mafiapub.com/mafia_2_scripts.php (http://www.mafiapub.com/mafia_2_scripts.php:2d4pyhpz)


 




that where i found them
Title: some script for mafia 2
Post by: zzzzzz2 on December 03, 2011, 05:03:57 AM
Thanks,and what tools are you using? I'm using Injector7 for it.




I want a better tool.
Title: some script for mafia 2
Post by: crazypreacher on December 03, 2011, 11:40:46 AM
i just post them to help i don't even know how to use them
Title: some script for mafia 2
Post by: eXistenZ34 on December 06, 2011, 02:14:36 PM
Look here




http] (//1ljl29m7)