AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Suicide blocker (https://forums.alliedmods.net/showthread.php?t=9618)

Votorx 01-25-2005 12:24

Suicide blocker
 
I've successfully made a suicide blocker, since, from what I heard there was none. The only problem I have is that a split second after they try committing suicide they see a black screen before they respawn (since I can't seem to block the suicide directly). How can I get it so they can respawn fast enough to not see that black screen? I didn't see much reason in postin the code seeing as I just need a quick way to respawn without any delay time.

Geesu 01-25-2005 14:14

wait did u block suicide? Or just spawn them after they did it?

B/c you CAN actually block it using fakemeta I'm pretty sure.

XxAvalanchexX 01-25-2005 19:53

Code:
public client_kill(id) {   return PLUGIN_HANDLED; }

That was a very small plugin, unless of course you mean keep them from jumping off of ledges and blowing themselves up, in which case if all you do is respawn them it isn't really blocking it at all. I'm not sure if there is a way to get rid of the black screen, how long do you wait after they die to respawn them?

Votorx 01-26-2005 07:26

Avanlanche you test that? From what I understand that doesn't work.

Quote:

wait did u block suicide? Or just spawn them after they did it?

B/c you CAN actually block it using fakemeta I'm pretty sure.
No i didn't atually block it, it seems that way though. I haven't used fakemeta because I started makin this plugin before the new amxx mod was released. I stopped and restarted it just now. I respawn them like .01 seconds after they die.

XxAvalanchexX 01-26-2005 15:27

Yes, I did test that, I've used it in two of my plugins already and it works.

Votorx 01-26-2005 18:47

Well that's really weird. I suppose you did this with the new amxx because Im 100% positive that didn't work before.

XxAvalanchexX 01-27-2005 00:17

client_kill is a forward. Maybe you tried to hook the kill command with register_clcmd or register_concmd to client_kill instead?

Votorx 01-27-2005 07:15

Nope, never made that mistake. I remember there being a whole thread on this and it didn't work on the previous versions. Guess they fixed it now.


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

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