AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CS Sprite fix (https://forums.alliedmods.net/showthread.php?t=352)

EKS 03-19-2004 19:47

CS Sprite fix
 
1 Attachment(s)
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

ibm86 03-19-2004 19:50

I never noticed this problem... but I'll download it :wink:

ziper 03-19-2004 19:53

gj, this was getting annoying :)

MagicShot 03-19-2004 22:30

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

Keep it up!

ibm86 03-19-2004 23:36

Aaaaaaaaaaaaargh!!!!!!!!!! The sprite you used is ugly :cry:
Give me the original sprite next to the timer! :cry:

Johnny got his gun 03-20-2004 05:28

You didn't mark this as for Counter-strike..?

CheesyPeteza 03-20-2004 08:41

1 Attachment(s)
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.

EKS 03-21-2004 07:37

Quote:

Originally Posted by ibm86
Aaaaaaaaaaaaargh!!!!!!!!!! The sprite you used is ugly :cry:
Give me the original sprite next to the timer! :cry:

I use the one included in CS.

@CheesyPeteza
Thank you, you changes are incorporated.

EKS 03-21-2004 20:32

Plugin updated again.
  • Changelog:
    1.0.3
    - gMsgIconCT& gMsgIconT changed to gMsgID ( Thx to CheesyPeteza )

KiN | SuicideDog 03-25-2004 22:57

I don't know if I've ever seen this sprite.. anyone have a screenie?


All times are GMT -4. The time now is 05:01.

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