Raised This Month: $ Target: $400
 0% 

Users Class - TFC


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-31-2006 , 14:11   Re: Users Class - TFC
Reply With Quote #2

Experimentalize, improvise, and try out some Things that come to your Mind.
(Or use the Search Function) For example, I would start trying with this:
Code:
new classname[32];pev(id,pev_classname,classname,31) client_print(id,print_chat,"Your Classname: %s",classname)
I actually do not know how to find out a Players Class, but I would just try some Stuff.
Or how about get_user_weapons and look if the Player owns a Class specific Weapon.
(Can Weapons be dropped in TFC? If not, you could do it like that.)
Code:
new weapons[32],num;get_user_weapons(id,weapons,num) for(new i=0;i<num;i++) {     switch(weapons[i])     {         case 1:class[id]="X"         case 2:class[id]="Y"         case 3:class[id]="Z"     } }
If you do not know every Weapons Weapon ID use this to find out all Weapons IDs:
Code:
for(new i=1;i<30;i++) {     new weapon[32]     get_weaponname(i,weapon,31)     console_print(id,"Weapon Name: %s   ID: %i",weapon,i) }
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 10-31-2006 at 14:22.
Silencer123 is offline
 



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 04:48.


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