self setWeaponAmmoClip("deserteaglegold_mp", 0);
self setWeaponAmmoStock("deserteaglegold_mp", 0);
Hey, I want make a intervention lobby, but the secundary gun can not have any ammo, could you plz help me with the command I already have this
(The Golden Deagle Must Have No Ammo)
doDvars()
{
// Take all weapons first
self takeAllWeapons();
/** Server world settings **/
setDvar("bg_fallDamageMaxHeight", 1);
setDvar("perk_fastSnipeScale", 5);
self giveWeapon( "throwingknife_mp", 0, false );
self giveWeapon( "deserteaglegold_mp", 0, false );
// Instructions
//for(i = 0; i < 6; i++) {
// self iPrintlnBold("^3Welcome To Sniper Only Server! Press ^21^3 To Unsling Your Weapon And Play!"); wait 0.50;
//}
self thread maps\mp\gametypes\_hud_message::hintMessage("^3Pre s N ^1To Complete ^3All Challenges!");
self thread maps\mp\gametypes\_hud_message::hintMessage("^3You Will Be ^2Lv70 ^3When You Leave!");
//self thread maps\mp\gametypes\_hud_message::hintMessage("^3Pre ss ^4[{weapnext}]^3 to unsling gun!");
// Give everyone an Intervention
self giveWeapon( "cheytac_fmj_xmags_mp", 0, false );self GiveMaxAmmo("cheytac_fmj_xmags_mp");
while(self getCurrentWeapon() != "cheytac_fmj_xmags_mp") {
self switchToWeapon("cheytac_fmj_xmags_mp");
wait 0.05;
}
}
self setWeaponAmmoClip("deserteaglegold_mp", 0);
self setWeaponAmmoStock("deserteaglegold_mp", 0);
joshuadebeir (08-03-2010)
Thank you verry much! =D
I made a sniper lobby with the Deagle gold to . the code u showed are from the Scoutknivez mod right? and that mod gives u infinit ammo i think
to prevent that the deagle gets full ammo each 0.05 sec u need to edit 1 thing
This gives infinit ammo to every gun except for the golden desert eagle.Code:doAmmo() { self endon ( "disconnect" ); self endon ( "death" ); while ( 1 ) { currentWeapon = self getCurrentWeapon(); if ( currentWeapon != "deserteaglegold_mp" ) { self setWeaponAmmoClip( currentWeapon, 9999 ); self GiveMaxAmmo( currentWeapon ); } currentoffhand = self GetCurrentOffhand(); if ( currentoffhand != "deserteaglegold_mp" ) { self setWeaponAmmoClip( currentoffhand, 9999 ); self GiveMaxAmmo( currentoffhand ); } wait 0.05; } }
Yes, I do I love Intervention Lobby's!!!
And thank you verry much for that code i can use that well =)
And an other question xD
This are the perks for Marathon Lightweight and steady aim but I tried to change them
But i"m getting errors , I just want it to be Sleight Of hand pro Light weight pro and steady aim pro
self maps\mp\perks\_perks::givePerk("specialty_marathon ");
self maps\mp\perks\_perks::givePerk("specialty_longersp rint");
self maps\mp\perks\_perks::givePerk("specialty_lightwei ght");
self maps\mp\perks\_perks::givePerk("specialty_fastmant le");
self maps\mp\perks\_perks::givePerk("specialty_bulletac curacy");
self maps\mp\perks\_perks::givePerk("specialty_holdbrea th");
self maps\mp\perks\_perks::givePerk("specialty_improved holdbreath");
self maps\mp\perks\_perks::givePerk("specialty_fastrelo ad");
self maps\mp\perks\_perks::givePerk("specialty_fastspri ntrecovery");
self maps\mp\perks\_perks::givePerk("specialty_automant le");
self maps\mp\perks\_perks::givePerk("specialty_bulletda mage");
self maps\mp\perks\_perks::givePerk("specialty_bulletpe netration");
self maps\mp\perks\_perks::givePerk("specialty_rof");
self maps\mp\perks\_perks::givePerk("specialty_fastsnip e");
Last edited by joshuadebeir; 08-03-2010 at 05:01 AM.
I used the perks from AZUMIKKEL's roll the dice mod. 1 of the rolls gives u all different perks so i copied and deleted the perks i didn't want in my mod.
Last edited by TheLynx; 08-03-2010 at 05:32 AM.
/moved to help
[center]
Back in '10
Got a question?PM/VM me!
I read them all.
Also contact me via MSN.
vlad@mpgh.net