Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script RoyalWeapon -1,{
- OnInit:
- setarray( .@royalWeaponIds, 25621, 25622, 25623, 25624, 25625, 25626, 25627, 25628, 25629, 25630, 25631, 25632, 25633 );
- end;
- OnPCDieEvent:
- .@died = 1;
- OnPCKillEvent:
- for( .@i = 0; .@i < getarraysize( .@royalWeaponIds ); .@i++ ) {
- if( getequipid( EQI_HAND_L ) == .@royalWeaponIds[ .@i ] || getequipid( EQI_HAND_R ) == .@royalWeaponIds[ .@i ] ) {
- .@royalWeaponEquipped = 1;
- break;
- }
- }
- if( !.@royalWeaponEquipped ) end;
- if( .@died == 1 )
- if ( @kill > 0 )
- @kill = @kill / 2;
- if( !.@died )
- if ( @kill < 10 )
- @kill += 1;
- message( strcharinfo(0), "You got " + @kill + " Kills" );
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement