Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / some script for mafia 2

some script for mafia 2

Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / some script for mafia 2

5 replies
14 years, 2 months ago
#7487

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

 

 


script for money :

 

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

 


script of immortality

 

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

 

 


Police scripts :

 

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

 

 


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.

 

 


Scripts music :

 

game.game :P layMusic(“m05_Distilery_Secondfloor”, true, 1, 1, 1) —music of the mission

 

 


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

 


14 years, 2 months ago
#8796

How did you find it? irritated.gif

And could you give me more? <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/smile@2x.png 2x” width=”20″ height=”20″>

14 years, 2 months ago
#8798

Thanks,and what tools are you using? I’m using Injector7 for it.

I want a better tool.

14 years, 2 months ago
#8799

i just post them to help i don’t even know how to use them

14 years, 2 months ago
#8834

Look here

http]

  • You must be logged in to reply to this topic.