Jump to content
Sign in to follow this  
marvel_team

[REZOLVAT] help

Recommended Posts

Nume : Kill Reward

Versiune 1.0

descriere : asta este pluginu

 

#include < amxmodx >
#include < amxmisc >
#include < cstrike >
#include < fun >
 
public plugin_init ( )
register_event ( "DeathMsg", "abc", "a" );
 
public abc ( )
{
new i = read_data ( 1 );
new j = read_data ( 2 );
 
if ( i == j || !is_user_alive ( i ) )
return PLUGIN_HANDLED;
 
set_user_health ( i, get_user_health ( i ) + 10 );
set_user_armor ( i, get_user_armor ( i ) + 15 );
cs_set_user_money ( i, cs_get_user_money ( i ) + 300 );
 
client_print ( i, print_chat, "[Kill Reward] HP: 15 | AP: 15 | 300 $" );
 
return PLUGIN_HANDLED;
}
 
 
 
 
Nu reusesc sa`l fac si eu colorat putin ajutor?adica..
[Kill Reward] sa fie verde si 10HP 15AP 300 $ sa fie rosu....
multumesc

Share this post


Link to post
Share on other sites

Nume : Kill Reward


Versiune 1.0


descriere : asta este pluginu


 


#include < amxmodx >

#include < amxmisc >

#include < cstrike >

#include < fun >

 

public plugin_init ( )

register_event ( "DeathMsg", "abc", "a" );

 

public abc ( )

{

new i = read_data ( 1 );

new j = read_data ( 2 );

 

if ( i == j || !is_user_alive ( i ) )

return PLUGIN_HANDLED;

 

set_user_health ( i, get_user_health ( i ) + !t10 );

set_user_armor ( i, get_user_armor ( i ) + !t15 );

cs_set_user_money ( i, cs_get_user_money ( i ) + !t300 );

 

client_print ( i, print_chat, "!g[Kill Reward] HP: 15 | AP: 15 | 300 $" );

 

return PLUGIN_HANDLED;

}

 

P:S = Rosu nu pot sa il fac dar ti le-am facut specifice echipelor adica daca esti la CT ti le arata albastre si daca esti la terro ti le arata rosu . Sper ca ti-am fost de ajutor daca intampini probleme te rog sa ma contactezi . 

Share this post


Link to post
Share on other sites

elcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

/tmp/textTNenjk.sma(17) : error 017: undefined symbol "t10"
/tmp/textTNenjk.sma(18) : error 017: undefined symbol "t15"
/tmp/textTNenjk.sma(19) : error 017: undefined symbol "t300"

 

 

la compilare

Share this post


Link to post
Share on other sites

Nume : Kill Reward


Versiune 1.0


descriere : asta este pluginu


 


#include < amxmodx >

#include < amxmisc >

#include < cstrike >

#include < fun >

 

public plugin_init ( )

register_event ( "DeathMsg", "abc", "a" );

 

public abc ( )

{

new i = read_data ( 1 );

new j = read_data ( 2 );

 

if ( i == j || !is_user_alive ( i ) )

return PLUGIN_HANDLED;

 

!tset_user_health ( i, get_user_health ( i ) + 10 );

!tset_user_armor ( i, get_user_armor ( i ) + 15 );

!tcs_set_user_money ( i, cs_get_user_money ( i ) + 300 );

 

client_print ( i, print_chat, "!g[Kill Reward] HP: 15 | AP: 15 | 300 $" );

 

return PLUGIN_HANDLED;

}

Incearca acum

Share this post


Link to post
Share on other sites

am incercat varianta asta merge compilat dar nu s-a schimbat culoarea am incercat si cu coduri html gen#FF0000 etc ;)

Share this post


Link to post
Share on other sites

#include < amxmodx >

#include < amxmisc >

#include < cstrike >

#include < fun >

 

public plugin_init ( )

register_event ( "DeathMsg", "abc", "a" );

 

public abc ( )

{

new i = read_data ( 1 );

new j = read_data ( 2 );

 

if ( i == j || !is_user_alive ( i ) )

return PLUGIN_HANDLED;

 

set_user_health ( i, get_user_health ( i ) + 10 );

set_user_armor ( i, get_user_armor ( i ) + 15 );

cs_set_user_money ( i, cs_get_user_money ( i ) + 300 );

 

chat_color(0,"!t[Kill Reward] HP: 15 | AP: 15 | 300 $" );

 

return PLUGIN_HANDLED;

}

 

stock chat_color(const id, const input[], any:...)

{

new count = 1, players[32]

static msg[320]

vformat(msg, 190, input, 3)

replace_all(msg, 190, "!g", "^4")

replace_all(msg, 190, "!n", "^1")

replace_all(msg, 190, "!t", "^3")

replace_all(msg, 190, "!t2", "^0")

if (id) players[0] = id; else get_players(players, count, "ch")

{

for (new i = 0; i < count; i++)

{

if (is_user_connected(players))

{

message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players)

write_byte(players)

write_string(msg)

message_end()

}

}

}

}

Edited by LucHyaNN.
I-a vezi acum

Share this post


Link to post
Share on other sites

Acum merge :) Multam fain

T/C

Edited by LucHyaNN.
#Lock

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...