Raised This Month: $ Target: $400
 0% 

amx_slay problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-03-2013 , 07:19   Re: amx_slay problem
Reply With Quote #5

PHP Code:
   new target cmd_target id arg )
   if(!
is_user_alive(id)){
   
console_print(id"[Bucov AMXX] %s nu este viu."target)

   return 
PLUGIN_HANDLED

Problem was there :

1. you don't check if target is different from 0 -> client_cmd(id, "kill") was sent to all players.

2. not related but still a problem, you was check if 'id' is alive instead of target.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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:37.


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