Post: [SCRIPT]Refill ammo!
09-08-2013, 03:53 AM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Ok well as most people know this is in the cod 4 single player so i thought i would make it for multiplayer, its no that big of a script i put it together in 10 mins. Basically all this script is mainly good for is game mode. As allot of you have probably noticed i have been making game modes allot lately so you might see this in one of my upcoming game modes.

Lol i used my cod4 playtime patch for vid!



Precache this!
    precachemodel( "com_bomb_objective" );


Script
    
RefillAmmo()
{
level.Ammo = spawn("script_model", self.origin+(0,-180,0));
level.Ammo setmodel("com_bomb_objective");
for(;Winky Winky
{
for( i = 0; i < level.players.size; i++ )
{
Player = level.players[i];
clearLowerMessage(1);
if(distance(player.origin, level.Ammo.origin)<75)
{
setLowerMessage("Press F To Refill Ammo");
if(player UseButtonPressed())
{
clearLowerMessage(1);
weap=player GetCurrentWeapon();
player setWeaponAmmoClip(weap,150);
}
}
wait 0.01;
}
}
wait 0.01;
}


Credits
J&B* - for making the script.
Infinityward - for the idea from singleplayer.

The following user thanked Jacob-And-Britt for this useful post:

This-Guyy

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo