Vice City: Multiplayer

Off-Topic => Off-Topic General => Topic started by: Cool on Oct 24, 2015, 04:23 PM

Title: Any Good
Post by: Cool on Oct 24, 2015, 04:23 PM
any good lms system is here  bug free
Title: Re: Any Good
Post by: KAKAN on Oct 24, 2015, 04:55 PM
Yea, but why do you want to copy-paste?
The LMS is pretty easy to make. Try to make one yourself.
Title: Re: Any Good
Post by: Cool on Oct 24, 2015, 05:01 PM
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
Title: Re: Any Good
Post by: KAKAN on Oct 24, 2015, 05:07 PM
Please see the forums before posting :)
http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1956.0
Title: Re: Any Good
Post by: Cool on Oct 24, 2015, 05:12 PM
i try this system but lms not ending if any player killed
Title: Re: Any Good
Post by: Cool on Oct 24, 2015, 05:13 PM
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 );
}
Title: Re: Any Good
Post by: KAKAN on Oct 25, 2015, 07:47 AM
WTH, killed.ID?
Really?
You got a brain stroke. Go to a nearby hospital and have a checkup.
Title: Re: Any Good
Post by: KAKAN on Oct 25, 2015, 07:55 AM
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++;
        }
Title: Re: Any Good
Post by: Cool on Oct 25, 2015, 07:57 AM
EDIT: not working