Raised This Month: $ Target: $400
 0% 

[ES] detectar cuando un player esta muerto!


  
 
 
Thread Tools Display Modes
Author Message
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 08-23-2010 , 10:27   [ES] detectar cuando un player esta muerto!
#1

buenas amigos estoy buscando detectar cuando un player esta muerto ya que quiero que un comando solo se pueda utilizar cuando esta vivo y cuando este muerto le muestre un print diciendole que no puede ejecutarlo porq esta muerto...
Bello2 is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 08-23-2010 , 10:29   Re: [ES] detectar cuando un player esta muerto!
#2

!is_user_alive(index)
__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 08-23-2010 , 11:03   Re: [ES] detectar cuando un player esta muerto!
#3

Quote:
Originally Posted by shinoda View Post
!is_user_alive(index)
shinoda creo que no me han entendido osea es algo como esto:

if(muerto(id) return client_print bla bla
else
{
CODE
}

quiero es detectar cuando esta muerto :S
Bello2 is offline
shinoda
Spanish Moderator
Join Date: Nov 2009
Location: ag_crossfire
Old 08-23-2010 , 11:09   Re: [ES] detectar cuando un player esta muerto!
#4

Quote:
Originally Posted by Bello2 View Post
shinoda creo que no me han entendido osea es algo como esto:

if(muerto(id) return client_print bla bla
else
{
CODE
}

quiero es detectar cuando esta muerto :S
Y que fue lo que te dije ?

PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Comando para los vivos""0.1""Shinoda")
    
    
register_concmd("amx_comando""cmdComando")
}

public 
cmdComando(id) {
    if(!
is_user_alive(id)) {
        
client_print(id4"No puedes ejecutar este comando estando muerto :)"msg)
        return 
1
    
}
    
    
// code
    
    
return 1

__________________
Oh hell no this shit is awesome !!!
shinoda is offline
Send a message via MSN to shinoda Send a message via Skype™ to shinoda
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 08-23-2010 , 11:15   Re: [ES] detectar cuando un player esta muerto!
#5

Quote:
Originally Posted by shinoda View Post
Y que fue lo que te dije ?

PHP Code:
#include <amxmodx>

public plugin_init() {
    
register_plugin("Comando para los vivos""0.1""Shinoda")
    
    
register_concmd("amx_comando""cmdComando")
}

public 
cmdComando(id) {
    if(!
is_user_alive(id)) {
        
client_print(id4"No puedes ejecutar este comando estando muerto :)"msg)
        return 
1
    
}
    
    
// code
    
    
return 1

ok probare y te digo
Bello2 is offline
Bello2
Senior Member
Join Date: Jun 2010
Location: Venezuela
Old 08-23-2010 , 11:29   Re: [ES] detectar cuando un player esta muerto!
#6

gracias closed
Bello2 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 00:55.


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