AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   kill players with damage (https://forums.alliedmods.net/showthread.php?t=127082)

Wuu 05-16-2010 15:26

kill players with damage
 
Should this kill player instantly?

PHP Code:

fakedamage(all[i],"Damage",20.0256

Search is so f***, i can find nothing :(

Xellath 05-16-2010 16:35

Re: kill players with damage
 
Code:
#include < amxmodx > #include < hamsandwich > user_kill( iPlayer ); // <a href="http://www.amxmodx.org/funcwiki.php?go=func&id=169" target="_blank" rel="nofollow noopener">http://www.amxmodx.org/funcwiki.php?go=func&id=169</a> user_silentkiller( iPlayer ); // <a href="http://www.amxmodx.org/funcwiki.php?go=func&id=404" target="_blank" rel="nofollow noopener">http://www.amxmodx.org/funcwiki.php?go=func&id=404</a> ExecuteHam( Ham_Killed, iPlayer, 0, 0 ); ExecuteHam( Ham_TakeDamage, iPlayer, 0, 0, 100.0, DMG_GENERIC );

Take your pick. The fakedamage through engine, like you posted in your first post, should work too. Just set the damage to 100 or above.

Wuu 05-17-2010 11:14

Re: kill players with damage
 
All this stuff really need some good manual or wiki, even google can't find anything about Ham_TakeDamage. Most of time i spend searching, searching and searching :(

Anybody want to give skype name, for support?

Xellath 05-17-2010 12:11

Re: kill players with damage
 
Take a look here: http://www.amxmodx.org/funcwiki.php and you could also check in scripting/includes.


All times are GMT -4. The time now is 03:43.

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