AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is there something like HurtPlayer (https://forums.alliedmods.net/showthread.php?t=152637)

nvkkk 03-12-2011 08:36

Is there something like HurtPlayer
 
A function that allows a plugin to hurt a player as if another player had dealt this damage.
Something like hurtPlayer(from, to, dmg) so that if I do hurtPlayer(1, 2, 45) player with client index 2 will have 45hp less and if he looks in the console it will appear "Damage taken from (Client index 1 name): 45 in 1 hit"

Is that possible? I've been looking SDKHooks too but haven't found anything.

Thanks in advanced

nvkkk 03-12-2011 08:37

Re: Is there something like HurtPlayer
 
Meh bad forum, this belongs to SourceMod. Close please


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

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