Raised This Month: $ Target: $400
 0% 

Client with that name...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 07-09-2007 , 07:48   Client with that name...
Reply With Quote #1

The script is SO easy, but i have problems with it that i Can't solve...

Code:
Code:
public death()
{
 new killed_player = read_data(2)
 
 new killed_name[32]
 get_user_name(killed_player,killed_name,31)
 
 if(get_pcvar_num(killed) == 1) {
  server_cmd("amx_ban %d %s %s", get_pcvar_num(bantime), killed_name, get_pcvar_num(reason))
 }
 else if(get_pcvar_num(killed) == 2) {
  server_cmd("amx_kick %s %s", killed_name, get_pcvar_num(reason))
 }
 return PLUGIN_CONTINUE
}
It doesn't do anything. Only in server console it shows:

Client With That Name Or Userid Not Found

I tried almost every way but it still doesn't work.
No errors Compiling.
Can someone help me?
Thanks
shine771 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 21:32.


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