doCraps()
{
self endon("death");
self endon("disconenct");
while(1)
{
self waittill("weapon_fired"); //Wait until a bullet is fired
//Do crap here
}
}
checkFire()
{
self endon("death");
self endon("disconenct");
while(1)
{
self waittill("weapon_fired");
self iPrintLnBold("U are shooting");
wait 0.05;
}
self iPrintLnBold("U stopped shooting");
}