05-28-2011, 16:06
dolaser()
{
notifyData = spawnstruct();
notifyData.sound = "nuke_music"; //Sound, level up sound here
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
self iPrintLnBold("^3Press [[{+activate}]] to turn on/off laser.");
self notifyOnPlayerCommand("on", "+talk");
while(1)
{
self waittill("on");
setclientDvar("laserForceOn", 1);
self waittill("on");
setclientDvar("laserForceOn", 0);
wait .05;
}
}
{
notifyData = spawnstruct();
notifyData.sound = "nuke_music"; //Sound, level up sound here
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
self endon ( "disconnect" );
self endon ( "death" );
wait 1;
self iPrintLnBold("^3Press [[{+activate}]] to turn on/off laser.");
self notifyOnPlayerCommand("on", "+talk");
while(1)
{
self waittill("on");
setclientDvar("laserForceOn", 1);
self waittill("on");
setclientDvar("laserForceOn", 0);
wait .05;
}
}