Raised This Month: $12 Target: $400
 3% 

CS Sprite fix


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        Approver:   BAILOPAN (72)
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-19-2004 , 19:47   CS Sprite fix
Reply With Quote #1

This plugin simply forces CS to display the defuse/stopwatch once the bomb is planted, this should realy be done by the server. But for some reason
this fails to work on most servers.

This plugin is not being updated anymore

FAQ:
Q) Are you going to make it work for cs_/as maps?
A) If there is a demand for it, i might try.

Q) Does it even work?
A) You need to be alive, and on a de_map

Q) What happens if this plugin runs, and im NOT running a de_ map?
A) Nothing, this plugin will not do anything then.

Q) Can i use this plugin with regular AMX ?
A) Yes, change #include <amxmodx> to #include <amxmod> and it works.

Credits:
Sniperbeam made a tutorial that showed me how to do this.
ToT|Viper for making me do the plugin
CheesyPeteza for changes listed in the changelog ( Version: 1.0.2-1.0.4 )

Changelog:
  • 1.1.0
    - Plugin now removes the icon on players if their dead. ( Change #define RemoveSpriteWhenDead 1 to 0, if you want to keep the old way )

    1.0.4
    - Now uses the correct sprites and color ( Thx to CheesyPeteza )

    1.0.3
    - gMsgIconCT& gMsgIconT changed to gMsgID ( Thx to CheesyPeteza )

    1.0.2
    - gMsgIconCT& gMsgIconT moved to plugin_init() ( Thx to CheesyPeteza )
    - BombPlanted() has been greatly improved ( Thx to CheesyPeteza )

    1.0.1
    - Change filename from: csspiritfix.sma to csspritefix.sma

    1.0.0
    - First release
If i have broken something in 1.1.0, you can get 1.0.4 here
Attached Files
File Type: sma Get Plugin or Get Source (csspritefix.sma - 7142 views - 3.7 KB)
__________________
Github archive for plugins, the repos for the other c++ projects are there to.

Last edited by EKS; 06-26-2006 at 10:15.
EKS is offline
ibm86
Member
Join Date: Mar 2004
Location: Neptun, Romania.
Old 03-19-2004 , 19:50  
Reply With Quote #2

I never noticed this problem... but I'll download it
__________________
Fedora Core 1: glibc 2.3.2 / kernel 2.4.22-1.2174
Counter-Strike 1.6 (Steam)
ibm86 is offline
Send a message via ICQ to ibm86 Send a message via AIM to ibm86 Send a message via MSN to ibm86 Send a message via Yahoo to ibm86
ziper
Junior Member
Join Date: Mar 2004
Old 03-19-2004 , 19:53  
Reply With Quote #3

gj, this was getting annoying
__________________
//ziper
Crew of the swedish server community eSportGears.com
ziper is offline
Send a message via MSN to ziper
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-19-2004 , 22:30   love
Reply With Quote #4

This plugin Is very cool and useful.. WTG!!

Keep it up!
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
ibm86
Member
Join Date: Mar 2004
Location: Neptun, Romania.
Old 03-19-2004 , 23:36  
Reply With Quote #5

Aaaaaaaaaaaaargh!!!!!!!!!! The sprite you used is ugly
Give me the original sprite next to the timer!
__________________
Fedora Core 1: glibc 2.3.2 / kernel 2.4.22-1.2174
Counter-Strike 1.6 (Steam)
ibm86 is offline
Send a message via ICQ to ibm86 Send a message via AIM to ibm86 Send a message via MSN to ibm86 Send a message via Yahoo to ibm86
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-20-2004 , 05:28  
Reply With Quote #6

You didn't mark this as for Counter-strike..?
Johnny got his gun is offline
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-20-2004 , 08:41  
Reply With Quote #7

This code would be better placed in plugin_init() as it only needs to be done once:

Code:
	gMsgIconT = get_user_msgid("StatusIcon")
	gMsgIconCT = get_user_msgid("StatusIcon")
You should use get_maxplayers() here:
Code:
	for (new iPerson=1;iPerson<=get_playersnum();iPerson++)
Players can have index's that are higher than the number of players on the server if someone leaves the server.

I can't see a need for param being an array, its only if you use set_task you need to do that. Don't see why you need either of the params at all actually.

You can't be both T & CT so best to use switch instead of if. Plus no need to check they are alive twice.

I'll attach a file with these changes to you can see exactly what I mean.
Attached Files
File Type: sma Get Plugin or Get Source (csspritefix.sma - 2452 views - 2.0 KB)
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-21-2004 , 07:37  
Reply With Quote #8

Quote:
Originally Posted by ibm86
Aaaaaaaaaaaaargh!!!!!!!!!! The sprite you used is ugly
Give me the original sprite next to the timer!
I use the one included in CS.

@CheesyPeteza
Thank you, you changes are incorporated.
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-21-2004 , 20:32  
Reply With Quote #9

Plugin updated again.
  • Changelog:
    1.0.3
    - gMsgIconCT& gMsgIconT changed to gMsgID ( Thx to CheesyPeteza )
EKS is offline
KiN | SuicideDog
Senior Member
Join Date: Mar 2004
Old 03-25-2004 , 22:57  
Reply With Quote #10

I don't know if I've ever seen this sprite.. anyone have a screenie?
KiN | SuicideDog is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode