can somebody help me, how to add more ammos into mode?
in normal there are often 4 ammos until load. how to increase this amount?
mode: more ammo
Moderator: English Moderator
Re: mode: more ammo
When spawning a player you can use the SetPlayerAmmoMax() function to set the number of ammo for each weapon:
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Weapon, Integer Count)
Re: mode: more ammo
thank you!
im very bad at editing modes is it like this to add 2 more ammos to rocket?
im very bad at editing modes is it like this to add 2 more ammos to rocket?
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Rocket, Integer 6)
Re: mode: more ammo
Please, read the ManiaScript Syntax documentationzombare wrote:thank you!
im very bad at editing modes is it like this to add 2 more ammos to rocket?
Code: Select all
SetPlayerAmmoMax(CSmPlayer Player, EWeapon Rocket, Integer 6)

As I know, that must be smth like this:
Code: Select all
SetPlayerAmmoMax(Player, EWeapon::Rocket, 6);
http://maniascript.tmrankings.com/html/index.html
ЕÑть вопроÑÑ‹? Только Ñкайп - faserg1.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.

Жизнь - Ñто динамика ритма. Life is dynamic of rhythm.
Re: mode: more ammo
The exact lines to paste before the player spawn are:
Code: Select all
// Set 6 ammo max to all weapons
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Rocket, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Laser, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Nucleus, 6);
SetPlayerAmmoMax(Player, CSmMode::EWeapon::Arrow, 6);
Who is online
Users browsing this forum: No registered users and 1 guest