Raised This Month: $ Target: $400
 0% 

get_user_name help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ProIcons
Senior Member
Join Date: Jan 2009
Location: Greece - Salonica
Old 02-04-2010 , 07:13   Re: get_user_name help
Reply With Quote #10

PHP Code:
public plugin_init()
{
    
register_plugin("move","r4nDoMz","1.0")
    
register_event("DeathMsg""client_death""a""1>0")
}

public 
client_death()
{    
    new 
Killer[32],Victim[32]
    new 
Killernum read_data(1)
    new 
Victimnum read_data(2)
    static 
weapon_name[24];
    
read_data(4,weapon_name,23);
    
get_user_name(Killernum,Killer,31);
    
get_user_name(Victimnum,Victim,31);
    if (
equal(weapon_name,"knife"))
    {
        
client_print(0print_center"%s killed %s with a knife!!!"KillerVictim)     
        
client_cmd(0,"spk sound/misc/chucky1.wav")
    }
    else
    {
        
client_print(0print_chat"Player %s was killed by %s!!!"VictimKiller
    }

EDITED Change this two Codes
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))

Last edited by ProIcons; 02-04-2010 at 07:16. Reason: EDITED
ProIcons 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 07:28.


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