any good lms system is here bug free
Yea, but why do you want to copy-paste?
The LMS is pretty easy to make. Try to make one yourself.
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
Please see the forums before posting :)
http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1956.0
i try this system but lms not ending if any player killed
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 );
}
WTH, killed.ID?
Really?
You got a brain stroke. Go to a nearby hospital and have a checkup.
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++;
}
EDIT: not working