Raised This Month: $ Target: $400
 0% 

small help needed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Afro-Ankan
Member
Join Date: Jul 2009
Location: Sweden
Old 08-07-2010 , 19:22   Re: small help needed
Reply With Quote #1

thanks guys, but i find my own way...

PHP Code:
public eDeath( )
{
 new 
iKiller read_data(1);
 new 
kill_name[32];
 
 new 
iVictim read_data(2);
 new 
vic_name[32];
 
 new 
iHeadshot read_data(3);
 
 
//Make sure that the killer exists
 
if( <= iKiller <= get_maxplayers() )
 {
  
//If victim is not killer
  
if( cs_get_user_team(iKiller) != cs_get_user_team(iVictim) )
  {
   
get_user_name(iVictimvic_namecharsmax(vic_name)     );
   
//If victim is not a teammate of killer
   
if(!iHeadshot)
   {
    
PlayerPS[iKiller] += get_pcvar_num(PS_Kill)
    
print_color(iKiller"You got ^x04%i^x01 Points for killing ^x04%s"get_pcvar_num(PS_Kill), vic_name);
   }
   else
   {
    
PlayerPS[iKiller] += get_pcvar_num(PS_Hs);
    
print_color(iKiller"You got ^x04%i^x01 Points for killing ^x04%s^x01 with ^x04Headshot"get_pcvar_num(PS_Hs), vic_name);
    
    
//get the killers name
    
get_user_name(iKillerkill_namecharsmax(kill_name)   );
   }
   
   while(
PlayerPS[iKiller] >= LEVELS[PlayerLevel[iKiller]])
   {
    
print_color(iKiller"You just reced Level %i"iKillerPlayerLevel[iKiller]);
    
PlayerLevel[iKiller] += 1
   
}
  }
  
 } 

__________________
My Current Projects:
Pistols vs Pistols Public
Progress [ | | | | | | | | | | ]
Only 10% Completed
Afro-Ankan is offline
Send a message via MSN to Afro-Ankan
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 00:07.


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