Raised This Month: $ Target: $400
 0% 

Como mandarle un mensaje a un jugador


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
dafuq
Member
Join Date: Jun 2012
Old 09-20-2012 , 15:37   Como mandarle un mensaje a un jugador
#1

Pues estaba viendo un plugin Bonus de Vida por Cada HeadShot (Que diseño Geoslide) y le quiero agregar que mande un mensaje al jugador que diga "HEADSHOT". y que sea solo para Ct's
Aqui el plugin:
PHP Code:
#include <amxmodx> 
#include <fun>

public plugin_init( ) 
{
    new const 
PLUGININFO[ ][ ] = { "HP ON KILL""X""Geoslide" }
    
register_pluginPLUGININFO], PLUGININFO], PLUGININFO] )
    
    
register_event"DeathMsg""Death_MSG""a" )
}

public 
Death_MSG( )
{
    new 
hs;hs read_data)
    new 
at;at read_data)
    if( 
hs )
    
set_user_healthatget_user_healthat ) + 10 )

Cuando le agrego en el if el:
PHP Code:
client_print(idprint_chat"HeadShot: +10 HP"
Me salta error :S y al final quiero que todo quede asi:
PHP Code:
#include <amxmodx>
#include <fun>


public plugin_init( ) 
{
    new const 
PLUGININFO[ ][ ] = { "HP ON KILL""X""Geoslide" }
    
register_pluginPLUGININFO], PLUGININFO], PLUGININFO] )
    
    
register_event"DeathMsg""Death_MSG""a" )
}

public 
Death_MSG( )
{
    new 
hs;hs read_data)
    new 
at;at read_data)
    if( 
hs && (team==CS_TEAM_CT) )
    {
      
set_user_healthatget_user_healthat ) + 10 )
      
client_print(idprin_chat"HEADSHOT")
    }


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


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