AlliedModders

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

Burnzy 07-03-2004 21:16

set_user_health
 
im trying to do an easy port for amx_hookmod (the ones i found looked gay so im using lugwigs) and i get error on cs_set_user_health
Is there a certain include i need?

here is where i get error:
Code:

        cs_set_user_health(id,get_user_health(id)-10)

kingpin 07-03-2004 21:43

Code:
#include <cstrike>

Burnzy 07-04-2004 10:26

1 Attachment(s)
i did that and it still doesnt work... here:

kingpin 07-04-2004 10:50

1 Attachment(s)
here u need to add fun to it.

Burnzy 07-04-2004 11:04

thx kingpin, im gonna test it, then put it up that i got everything working...

Burnzy 07-04-2004 11:09

1 Attachment(s)
crap... i think this is just commands. Which u gotta put into hookmod. GAY!

Johnny got his gun 07-05-2004 14:49

There is no such thing in cstrike module. Use fun module for that:

Quote:

/* Sets player health. */
native set_user_health(index, health);

Burnzy 07-05-2004 15:01

i was just thinking of changin this...


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

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