Raised This Month: $ Target: $400
 0% 

read_data


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 15:16   read_data
Reply With Quote #1

Anyone in here, there can tell, me how i can find a persons killer? - I mean it's something with read_data, but when i use it, it returns 'TERRORIST" :/ that because im trying to make a kind of a /hp function...
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-25-2005 , 15:42  
Reply With Quote #2

get_user_attacker
Freecode is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 15:53  
Reply With Quote #3

Thx dude!

Edit: Well i cant get it to return the killer.... You know how...?
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 03-25-2005 , 16:24  
Reply With Quote #4

post ur code or the function at least
Freecode is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-25-2005 , 17:21  
Reply With Quote #5

Okay like this:

Code:
#include <amxmodx> public SayTest(id) {   new killer[32]   get_user_attacker(id,killer,32)   new message[64]   format(message,63,"Killer: %s",killer)       set_hudmessage(0, 100, 200, 1.00, 1.00, 0, 6.0, 12.0, 1, 1, 1)   show_hudmessage(id,message) } public plugin_init(){   register_clcmd("say /test","SayTest",0,"Tester")   return PLUGIN_CONTINUE }
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-25-2005 , 23:18  
Reply With Quote #6

at the moment you say /test you probably wont have an attacker!! so no valid attacker will be given..

Getting an attacker ID is only useful after being attacked!!
xeroblood is offline
Send a message via MSN to xeroblood
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-26-2005 , 04:55  
Reply With Quote #7

Yes, but i dont know what i should wirte to find the killer, because that i have written there, dont returns a killer...

Code:
  new killer[32]   get_user_attacker(id,killer,32)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-26-2005 , 11:41  
Reply With Quote #8

Code:
new weapon, body new killer = get_user_attacker(id,weapon,body)
xeroblood is offline
Send a message via MSN to xeroblood
Reply


Thread Tools
Display Modes

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 10:00.


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