AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block killing when reading (https://forums.alliedmods.net/showthread.php?t=11069)

FoX Rider 03-09-2005 00:51

Block killing when reading
 
How do you make it so when someone is reading something they can't be killed. I.E. /rules

Twilight Suzuka 03-09-2005 12:03

You'd have to get when they are reading/ have started reading a motd, and then god them. Seems a bit hard to me.

FoX Rider 03-09-2005 13:48

Well, how would I do it when they are reading? I think I've heard of a code that has this..just don't know where..

-Edit- Would you use...set_msg_block ( msgId, flag ) Then set godmode on them?

XunTric 03-09-2005 14:05

When they are reading??
AMX Mod X dont have a camera in your computer that sees when peoples eyes are reading stuff... :lol:
Only way could be when reading motd messages...

XxAvalanchexX 03-09-2005 15:18

You can't really get when a MoTD box is closed, unless perhaps you register an onClose event or whatever it is in JS and then on that event send a command to the server via PHP that they are no longer reading, but it sounds too much trouble than it's worth.

Da Bishop 03-09-2005 15:40

Make like a console cmd they can type that gives em god and makes so they can't move or shoot. THen a different cmd to turn it all off.

BlueRaja 03-09-2005 21:49

Yes, that's a fantastic idea, I could just see it now:
*terrorist plants bomb, then becomes invincible and waits until CT tries to defuse - BAM right to the back of the head*


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

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