AlliedModders

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

stigma 03-25-2005 15:16

read_data
 
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...

Freecode 03-25-2005 15:42

get_user_attacker

stigma 03-25-2005 15:53

Thx dude! :D

Edit: Well i cant get it to return the killer.... You know how...?

Freecode 03-25-2005 16:24

post ur code or the function at least

stigma 03-25-2005 17:21

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 }

xeroblood 03-25-2005 23:18

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!!

stigma 03-26-2005 04:55

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)

xeroblood 03-26-2005 11:41

Code:
new weapon, body new killer = get_user_attacker(id,weapon,body)


All times are GMT -4. The time now is 10:00.

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