Wait time for player (HNS-mOD)
Posted: June 4th, 2010, 5:02 pm
Hey, guys i've been working on this cod1 mod for sometime trying to make it so the player has to stay at spawn for 60 secend so that the other team can have time to hide. is there anyway that someone can show me an easyer way to make it so it holds the player for 60 secend and after the 60 secend is up it lets them go at normal speed. the code under this is what i have so far. PLEASE HELP!!!
-------------Hiders line---------->
Code: Select all
seeker()
{
if(!isDefined(game["allies"]))
{
self.maxspeed = getEntArray( "holdplayer", "classname" );
for( i = 0; i <holdplayer.size; i++ )
if(isdefined(holdplayer[i]))
{
holdplayer[i] = true;
self delWeaps();
wait .5;
self setWeaponSlotWeapon("primary", "Seeker_mp");
self iprint1n ("You have been given a Seekers Weapon");
self.maxhealth = 1000000;
self.health = self.maxhealth;
}
wait .5;
holdplayer[i] = false;
}
}
Code: Select all
hider()
{
self delWeaps();
wait .5;
self setWeaponSlotWeapon("primary", "hider_mp");
self iprint1n ("You have been given a Hiders Weapon");
self iprint1n ("you have 60 sec to find a hiding spot!");
self.maxhealth = 100;
self.health = self.maxhealth;
}