Mine sisusse
Otsi siit
  • Rohkem valikuid...
Otsi tulemusi mis sisaldab...
Otsi tulemusi...

Soovitatud postitused

kuida seda pluginad amxx teha Mul on seal midagi valesti ja ise ei oska tny abi eest

 

 

#include

#include

#include

#include

#include

 

#define IsPlayer(%1) (1

 

new rs_max_frags, rs_deaths, rs_prefix[33]

 

public plugin_init()

{

register_plugin( "Auto Reset Score", "1.1", "a1rm4x/JocA")

 

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

 

register_clcmd("say /rs", "ResetScore")

register_clcmd("say /resetscore", "ResetScore")

register_clcmd("say /restartscore", "ResetScore")

 

register_clcmd("say_team /rs", "ResetScore")

register_clcmd("say_team /resetscore", "ResetScore")

register_clcmd("say_team /restartscore", "ResetScore")

 

register_srvcmd("rs_prefix", "prefix")

register_cvar("autors","1.1", (FCVAR_SERVER|FCVAR_SPONLY))

 

rs_max_frags = register_cvar( "rs_max_frags", "1" )

rs_deaths = register_cvar( "rs_deaths", "1" )

}

 

public prefix()

{

remove_task(123)

read_argv(1, rs_prefix, 32)

}

 

public ResetScore( id )

{

set_user_frags( id, 0 )

cs_set_user_deaths( id, 0 )

set_user_frags( id, 0 )

cs_set_user_deaths( id, 0 )

 

ColorChat( id, GREEN, "[%s]^x01 Uspesno si resetovao svoj skor.",rs_prefix )

}

 

public event_DeathMsg()

{

new id = read_data( 2 );

if( IsPlayer(id) )

{

if( get_user_frags( id ) = get_pcvar_num( rs_deaths ))

{

ResetScore_Menu( id );

}

}

}

 

public ResetScore_Menu( id )

{

new frags_i_deaths[72]

formatex( frags_i_deaths, 71, "\ySkor ti je:^n^n\wUbistava:\r %d \wSmrti:\r %d^n^n\yZelis li auto resetscore?", get_user_frags( id ), get_user_deaths( id ) )

 

new menu = menu_create( frags_i_deaths, "RSMenu_Keys" )

 

menu_additem( menu, "\wDa", "1" )

menu_additem( menu, "\wNe", "2" )

 

menu_display(id, menu, 0)

}

 

public RSMenu_Keys( id, menu, item )

{

if( item == MENU_EXIT )

{

return PLUGIN_HANDLED

}

 

new data[6], access, callback

 

menu_item_getinfo(menu, item, access, data, 5, _, _, callback)

 

new key = str_to_num(data)

 

switch( key )

{

case 1:

{

ResetScore( id )

}

case 2:

{

return PLUGIN_HANDLED;

}

}

return PLUGIN_HANDLED;

}


[sIGPIC][/sIGPIC]Eesti War3FT || EstWar3FT.eu [FastDL]

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP
kuida seda pluginad amxx teha Mul on seal midagi valesti ja ise ei oska tny abi eest

[/Quote]

 

öö??? .sma tõmbad compilerist läbi ja teeb sellest .amxx


no pain, no gain

no work, no results

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

Sul peab olema colorchat.inc fail samuti lisatud olema kompileerimisel


b_560_95_1.png

Public TS3. Tule ja liitu!

Jaga seda postitust


Postituse link
Share on other sites
SUPERVIP

Ilma colorchatita ver :

#include 
#include 
#include 
#include 

#define IsPlayer(%1) (1
new rs_max_frags, rs_deaths

public plugin_init()
{
register_plugin( "Auto Reset Score", "1.1", "a1rm4x/JocA")

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

register_clcmd("say /rs", "ResetScore")
register_clcmd("say /resetscore", "ResetScore")
register_clcmd("say /restartscore", "ResetScore")

register_clcmd("say_team /rs", "ResetScore")
register_clcmd("say_team /resetscore", "ResetScore")
register_clcmd("say_team /restartscore", "ResetScore")

register_cvar("autors","1.1", (FCVAR_SERVER|FCVAR_SPONLY))

rs_max_frags = register_cvar( "rs_max_frags", "1" )
rs_deaths = register_cvar( "rs_deaths", "1" )
}

public ResetScore( id )
{
set_user_frags( id, 0 )
cs_set_user_deaths( id, 0 )
set_user_frags( id, 0 )
cs_set_user_deaths( id, 0 )

client_print(id, print_chat,  "Sinu skoor %s on nyyd nullitud !")
}

public event_DeathMsg()
{
new id = read_data( 2 );
if( IsPlayer(id) )
{
if( get_user_frags( id ) = get_pcvar_num( rs_deaths ))
{
ResetScore_Menu( id );
}
}
}

public ResetScore_Menu( id )
{
new frags_i_deaths[72]
formatex( frags_i_deaths, 71, "\rKas soovid oma skoori nullida ?", get_user_frags( id ), get_user_deaths( id ) )

new menu = menu_create( frags_i_deaths, "RSMenu_Keys" )

menu_additem( menu, "\wJah", "1" )
menu_additem( menu, "\wEi", "2" )

menu_display(id, menu, 0)
}

public RSMenu_Keys( id, menu, item )
{
if( item == MENU_EXIT )
{
return PLUGIN_HANDLED
}

new data[6], access, callback

menu_item_getinfo(menu, item, access, data, 5, _, _, callback)

new key = str_to_num(data)

switch( key )
{
case 1:
{
ResetScore( id )
}
case 2:
{
return PLUGIN_HANDLED;
}
}
return PLUGIN_HANDLED;
} 


Jaga seda postitust


Postituse link
Share on other sites

Kommentaari lisamiseks loo konto või logi sisse

Kommenteerimiseks peate olema liige

Loo konto

Liituge meie kommuuni uue kontoga. See on lihtne!

Loo uus konto

Logi sisse

On juba konto? Logi sisse siit.

Logi sisse nüüd

×
×
  • Loo uus...

Oluline informatsioon

Selle veebisaidi paremaks muutmiseks oleme teie seadmesse paigutanud küpsised . Võite kohandada oma küpsiste seadeid , vastasel juhul eeldame, et te olete küpsiste kasutamisega nõus kui jätkate veebisaidil sirvimist.. Palun lugege läbi Kasutustingimused ja Privaatsuspoliitika.