Raised This Month: $ Target: $400
 0% 

[Help] Aim @player shows total kills?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
trehmilou
Junior Member
Join Date: Apr 2006
Old 11-25-2006 , 15:43   [Help] Aim @player shows total kills?
Reply With Quote #1

Hello,

I want to show a players' total kills in a small hudmessage when pointing at that guy.
My problem: after "Killz:" everybody seems to have the same value.

Here is my code so far:
Code:
public client_PreThink(id) {     new u_guy, body;     get_user_aiming(id, u_guy, body)     new u_stats[8]     new u_hits[8]     if (is_user_alive(u_guy))     {         get_user_stats(u_guy, u_stats, u_hits)                 set_hudmessage(10, 255, 10, 0.5, 0.55, 0, 6.0, 0.1)         show_hudmessage(id, "Killz: %i", u_stats[0])     } }

BIG THX!

@mods: sorry for all the mess :/

Last edited by trehmilou; 11-25-2006 at 15:48.
trehmilou is offline
 


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 06:56.


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