Raised This Month: $ Target: $400
 0% 

set_user_health


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-03-2004 , 21:16   set_user_health
Reply With Quote #1

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)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-03-2004 , 21:43  
Reply With Quote #2

Code:
#include <cstrike>
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-04-2004 , 10:26  
Reply With Quote #3

i did that and it still doesnt work... here:
Attached Files
File Type: sma Get Plugin or Get Source (amx_hookmod.sma - 307 views - 30.1 KB)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 07-04-2004 , 10:50  
Reply With Quote #4

here u need to add fun to it.
Attached Files
File Type: sma Get Plugin or Get Source (amx_hookmod.sma - 935 views - 30.1 KB)
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-04-2004 , 11:04  
Reply With Quote #5

thx kingpin, im gonna test it, then put it up that i got everything working...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-04-2004 , 11:09  
Reply With Quote #6

crap... i think this is just commands. Which u gotta put into hookmod. GAY!
Attached Files
File Type: sma Get Plugin or Get Source (amx_hookmod.sma - 921 views - 30.5 KB)
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 07-05-2004 , 14:49  
Reply With Quote #7

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

Quote:
/* Sets player health. */
native set_user_health(index, health);
Johnny got his gun is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 07-05-2004 , 15:01  
Reply With Quote #8

i was just thinking of changin this...
__________________
Burnzy is offline
Send a message via AIM to Burnzy
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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