Raised This Month: $ Target: $400
 0% 

[deleted]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sneakpeek
Member
Join Date: Dec 2005
Location: Who cares really?
Old 04-30-2006 , 14:48   [deleted]
Reply With Quote #1

[deleted]

Last edited by Sneakpeek; 01-25-2014 at 02:54.
Sneakpeek is offline
KoST
Senior Member
Join Date: Jul 2005
Old 04-30-2006 , 14:57  
Reply With Quote #2

there is an error:

change:
Code:
for(i = 0; i <= num; i++)
to:
Code:
for(i = 0; i < num; i++)

if you have for example num=3 then you would go from 0 to 3 which are actually 4!!

[edit] i would also recommend to put:
Code:
            new team[2]             team[0] = get_user_team(id)
outside of the for loop...

and to replace the get_user_team by get_team function:
Code:
public get_team(id){     new team[2]     get_user_team(id,team,1)     switch(team[0]){         case 'T':{             return 1         }         case 'C':{             return 2         }         case 'S':{             return 3         }         default:{}     }     return 0 }
__________________
KoST is offline
Sneakpeek
Member
Join Date: Dec 2005
Location: Who cares really?
Old 04-30-2006 , 16:29  
Reply With Quote #3

Didn't work. =/
Still nothing happends if im close to an enemy.
Thanks for the help thought.
Any other ideas?

Didn't edit the team code, but that shouldnt have anything to do with it.
__________________
Yes, you did
Sneakpeek is offline
KoST
Senior Member
Join Date: Jul 2005
Old 04-30-2006 , 16:42  
Reply With Quote #4

can you attach your whole plugin? you could also pm it to me, i won't steal it
__________________
KoST is offline
Sneakpeek
Member
Join Date: Dec 2005
Location: Who cares really?
Old 04-30-2006 , 16:47  
Reply With Quote #5

I'll PM it...
Lots of small tards on the superhero mod forum who would do anything to rip off someone elses code.
__________________
Yes, you did
Sneakpeek is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-30-2006 , 18:05  
Reply With Quote #6

It's client_PreThink, not client_preThink.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-02-2006 , 15:36  
Reply With Quote #7

KoST: you probably forgot that get_team useful only for dead players or if you are not sure whether player alive or dead.

EDIT:

In most cases for the dead players who changed the team or for thoose who died due to team switch some of the team information updated only after hud reset. Thats why it's recommended use such stocks for dead players. When you sure that player is alive there is no need in such stocks. You also can use cs_get_user_team without any fear because it retieves team index directly from the player's offset.
VEN is offline
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 09:14.


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