Originally posted by TheHiddenHour
Post the code that you're using so someone can take a look at it.
flashlowammo()
{
if (self.FlashingAMMO == true)
{
self thread lowammoflash();
self iPrintln("^7Flashing Low Ammo ^2ON");
self.FlashingAMMO = false;
}
else
{
self notify("StopFlash");
self iPrintln("^7Flashing Low Ammo ^1OFF");
self.FlashingAMMO = true;
}
}
lowammoflash()
{
self endon("disconnect");
self endon("StopFlash");
while(1)
{
setDvar("lowAmmoWarningColor1","1 0 0 1");
setDvar("lowAmmoWarningNoAmmoColor1","1 0 0 1");
setDvar("lowAmmoWarningNoReloadColor1","1 0 0 1");
wait .2;
setDvar("lowAmmoWarningColor1","1 0.7 0 1");
setDvar("lowAmmoWarningNoAmmoColor1","1 0.7 0 1");
setDvar("lowAmmoWarningNoReloadColor1","1 0.7 0 1");
wait .2;
setDvar("lowAmmoWarningColor1","1 1 0 1");
setDvar("lowAmmoWarningNoAmmoColor1","1 1 0 1");
setDvar("lowAmmoWarningNoReloadColor1","1 1 0 1");
wait .2;
setDvar("lowAmmoWarningColor1","0 1 0 1");
setDvar("lowAmmoWarningNoAmmoColor1","0 1 0 1");
setDvar("lowAmmoWarningNoReloadColor1","0 1 0 1");
wait .2;
setDvar("lowAmmoWarningColor1","0 0 1 1");
setDvar("lowAmmoWarningNoAmmoColor1","0 0 1 1");
setDvar("lowAmmoWarningNoReloadColor1","0 0 1 1");
wait .2;
setDvar("lowAmmoWarningColor1","1 0 1 1");
setDvar("lowAmmoWarningNoAmmoColor1","1 0 1 1");
setDvar("lowAmmoWarningNoReloadColor1","1 0 1 1");
wait .2;
setDvar("lowAmmoWarningColor1","0 1 1 1");
setDvar("lowAmmoWarningNoAmmoColor1","0 1 1 1");
setDvar("lowAmmoWarningNoReloadColor1","0 1 1 1");
wait .1;
}
}
Thats one and
gravity()
{
if(self.grav == true)
{
setDvar("bg_gravity", "150");
self.grav = false;
self iPrintln("Gravity ^2ON");
}
else
{
setDvar("bg_gravity", "800");
self.grav = true;
self iPrintln("Gravity ^1OFF");
}
}
hearallplayers()
{
if (self.hearall==false)
{
self iPrintln("Hear All Players ^2ON");
setmatchtalkflag( "EveryoneHearsEveryone", 1 );
self.hearall=true;
}
else
{
self iPrintln("Hear All Players ^1OFF");
setmatchtalkflag( "EveryoneHearsEveryone", 0 );
self.hearall=false;
}
}