View Single Post
Author Message
TechKnow
Senior Member
Join Date: Nov 2007
Old 11-17-2007 , 14:09   1v1 Knife Fight Revised to work (WITHOUT weapons.inc)
Reply With Quote #1

1v1 aka Knife Fight
1v1 1.0 Revised to work (Without weapons.inc)

by dalto & TechKnow

I myself could not get 1v1 version 1.1 to work, or get weapons.inc to load. so i re did 1.0 so it for the most part works. The original .sp would not compile because of an error in where it gives a knife after removing your weapons. The line was 'GivePlayerItem(weapon, "weapon_knife");' when it should have been 'GivePlayerItem(client, "weapon_knife");' and was not giving a knife if u didn't have one, I confermed this on the map awp_arena where you are not given a knife. So how had it gotten compiled i have no idea with that error. And i think in turn that was causing the one player not selecting knife fight and it still going to knife fight. I have also added notifications of the staus of players votes to do the 1v1. I call this Version 1.0.1 I have also noticed that It seams to work better if you copy over these 4 files from your SERVER hl2/materials/sprites folder to your SERVER cstrike/materials/sprites folder. The two laser files copied over also fixes the problem with the laserTag plugin too.

materials/sprites/laser.vmt
materials/sprites/laser.vtf
materials/sprites/halo01.vmt
materials/sprites/halo01.vtf

this plugin will always be installed on my server untill a better version comes out.

Enjoy,
TechKnow

Servers running 1v1Knife fight
http://www.game-monitor.com/search.p...&ruleval=1.0.4

http://www.game-monitor.com/search.p...&ruleval=1.0.5

Changelog:

1.0:
* Initial Release by dalto

1.0.1:
* Revision of Initial Release By TechKnow
* Fixed an bug where sometimes the 1v1 would ativate when only one person had selected to fight.
* Added notifications to let everyone know what each player selected

1.0.2:
* Added when players agree to knife fight their health is set to 200
* Really Fixed an bug where sometimes the 1v1 would ativate when only one person had selected to fight.

1.0.3:
* Added Weapon Denied and removed from round, if fighter picks up a gun durring a fight.

1.0.4:
* Repaird timer errors in console

1.0.5:
* Repaired if player has knife out when accept fight, player don't get 200hp
* Alowed player to keep and plant the bomb

Planed plugins...

sm_dystopia
sm_half
sm_bugs
sm_setmodel
sm_chicken V0.4
sm_timebomb
And many more

Enjoy,
TechKnow

Edit: Sourcecode removed at author's request.
__________________
"Stupd is what Stupid dose"
MY MODELS SITE
http://techknowmodels.19.forumer.com/index.php

Last edited by ferret; 12-12-2007 at 17:10. Reason: Update to v 1.0.5
TechKnow is offline