Raised This Month: $ Target: $400
 0% 

Como mandarle un mensaje a un jugador


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Swaycher
Senior Member
Join Date: Feb 2009
Location: Arg/MyHome/PawnStudio
Old 09-20-2012 , 15:46   Re: Como mandarle un mensaje a un jugador
#2

PHP Code:
#include <amxmodx>
#include <fun>

new const PLUGININFO[][] = {"HP ON KILL""X""Geoslide"}

public 
plugin_init()
{
    
register_plugin(PLUGININFO[0], PLUGININFO[1], PLUGININFO[2])
    
    
register_event("DeathMsg""Death_MSG""a")
}

public 
Death_MSG()
{
    new 
attacker read_data(1)
    new 
headshot read_data(3)
    
    if (
headshot)
    {
        
set_user_health(attackerget_user_health(attacker) + 10)
        
        if (
get_user_team(attacker) == 2)
            
client_print(attackerprint_chat"HEADSHOT")
    }

Lo que estabas haciendo mal era que le mandabas el client_print a un "id" inexistente, en este caso el id es "attacker" y es al mismo al cual le tenes que mandar el print.
En vez de usar client_print, ponías client_prin.
Usaste "team" para verificar el team, y nunca habías definido a team, CS_TEAM_CT se usa en cstrike, pero yo te lo cambie, no use cstrike.
__________________
Quote:
Originally Posted by fearAR View Post
Claro esta que no tengo idea de como verificar los diferentes cortes de ángulo.
http://forums.alliedmods.net/showthread.php?t=196349

Last edited by Swaycher; 09-20-2012 at 15:51.
Swaycher is offline
Send a message via MSN to Swaycher Send a message via Skype™ to Swaycher
 



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 20:10.


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