AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Trash (https://forums.alliedmods.net/forumdisplay.php?f=22)
-   -   Delete this please (https://forums.alliedmods.net/showthread.php?t=125247)

drekes 04-26-2010 08:47

Delete this please
 
Delete this please

Sylwester 04-26-2010 09:16

Re: Players Hud
 
You should learn some basics about scripting before releasing anything here.

You forgot about brackets { } in that for(..) loop.

You create new variables in a loop (actually right now you don't do that because brackets are missing).

You create endless task every time when player spawns or dies while it would be enough to create it only one time in plugin_init.

Your task interval is 1 second, but you didn't set hud_message holdtime to 1 second (default is 12 seconds).

If you hook spawn and death then you could cache is_user_alive and player team or even amount of players alive.

You shouldn't ask users to customize colors by changing code. It should be done with cvars.
Quote:

Originally Posted by drekes (Post 1161210)
NOTE: This does not support bots.

What do you mean?

drekes 04-26-2010 09:42

Re: Players Hud
 
i tryed it with bots and it did'nt count the bots

and i tryed it with cvars but it didn't work, could you give me an example how to do it with cvars

Sylwester 04-26-2010 09:47

Re: Players Hud
 
That's because your plugin counts only first player and noone else.

drekes 04-26-2010 09:54

Re: Delete this please
 
nevermind, i give up

SnoW 04-26-2010 10:48

Re: Delete this please
 
The note was correct as the plugin didn't support bots. Ham_Spawn was enabled only for game classname "player" so not for CZ bots.


All times are GMT -4. The time now is 22:15.

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