Any Good

Started by Cool, Oct 24, 2015, 04:23 PM

Previous topic - Next topic

Cool

any good lms system is here  bug free

KAKAN

Yea, but why do you want to copy-paste?
The LMS is pretty easy to make. Try to make one yourself.
oh no

Cool

ya but if some thing already available so best to add i will try and i will get error i will post here for fix it will take time Please link

KAKAN

oh no

Cool

i try this system but lms not ending if any player killed

Cool

function onPlayerKill( killer, player, reason, bodypart )
{
   try{
   if ( ( status[ killer.ID ].IsReg ) && ( status[ player.ID ].IsReg ) )
   {
       status[ killer.ID ].Kills++;
   status[ player.ID ].Deaths++;
   IncCash( killer, 500 );
   DecCash( player, 500 );
    ePrivMessage( "Killed: " + player.Name + ", Wep: " + GetWeaponName( reason ) + ", Part: " + GetBodypartName(bodypart) + ", Reward: $500", killer );
    ePrivMessage( "Killer: " + killer.Name + ", Wep: " + GetWeaponName( reason ) + ", Part: " + GetBodypartName(bodypart) + ", Lost: $500", player );
       EchoMessage(ICOL_RED + " " + killer.Name + " killed " + player.Name + " with Wep: " + GetWeaponName( reason ) + ", Part: " + GetBodypartName(bodypart) + ".");
    if ( bodypart <= 6 ) IncPlayerBodyPart( killer, bodypart, 1 );
       if ( reason <= 32 ) IncPlayerWep( killer, reason, 1 );
   status[ killer.ID ].Spree++;
   StartSpree( killer );
   if ( status[ player.ID ].Spree >= 5 ) EndSpree( player, killer );
   if ( stats[ killed.ID ].LMS )
        {
         LMSCount--;
         local a = killer;
         EMessage( ">> " + killed.Name + " is out of the LMS round." );
         stats[ killed.ID ].LMS = false;
         if ( LMSCount == 1 ) CheckEnd( a );
stats[ killed.ID ].Lost++;
        }
}
   
   }
   catch(e) print( "OnPlayerKill Error: " + e );
}

KAKAN

WTH, killed.ID?
Really?
You got a brain stroke. Go to a nearby hospital and have a checkup.
oh no

KAKAN

Anyways change this:-
if ( stats[ killed.ID ].LMS )
        {
         LMSCount--;
         local a = killer;
         EMessage( ">> " + killed.Name + " is out of the LMS round." );
         stats[ killed.ID ].LMS = false;
         if ( LMSCount == 1 ) CheckEnd( a );
stats[ killed.ID ].Lost++;
        }
TO:-
if ( stats[ player.ID ].LMS )
        {
         LMSCount--;
         EMessage( ">> " + player.Name + " is out of the LMS round." );
         stats[ player.ID ].LMS = false;
         if ( LMSCount == 1 ) CheckEnd( killer );
stats[ player.ID ].Lost++;
        }
oh no

Cool

#8
EDIT: not working