give ac130(killstreak):
Code:
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "ac130", false );
now just put this in your host code and then add this code for ammo in the script:
Code:
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
for(;;)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "UMP45" )
{
if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
{
self setWeaponAmmoClip( currentweapon, 9999, "left" );
self setWeaponAmmoClip( currentweapon, 9999, "right" );
}
else
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.01;
}
}
now add this for the host:
Code:
doHostcheck()
{
if( self isHost() )
{
self thread maps\mp\gametypes\_hud_message::hintMessage("^3You Are The Host!");
self thread doAmmo();
}
}
put the killstreak in the host thread and then put the host thread in the onPlayerSpawed()
and it will look look like this:
Code:
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self thread doHostcheck();
self waittill("spawned_player");
}
}
HOPE YOU UNDERSTAND ME!