Reset Deads
2 participanți
Pagina 1 din 1
Reset Deads
Descriere: Este un sub-plugin de resetscore, numai ca acesta reseteaza numai decesele (mortiile), nu intreg scorul. Este facut pentru 2 accese: Owner si Co-Owner.
Descarcare:
Nume: Reset Deads
Versiune: 1.0
Link oficial: aici
Instalare:
1. Fisierul Reset_Deads.sma il puneti in addons/amxmodx/scripting
2. Fisierul Reset_Deads..amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -
Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator): -
Comenzi publice (se tasteaza in joc prin apasarea tastei Y): -
Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini): -
Imagini: -
Descarcare:
- Spoiler:
- /* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "0.Ox"
#define AUTHOR "Infinity"
new Limit [ 33 ];
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd ( "say /rd", "fResetDeaths" );
register_clcmd ( "say rd", "fResetDeaths" );
register_clcmd ( "say /resetdeads", "fResetDeaths" );
register_clcmd ( "say resetdeads", "fResetDeaths" );
register_clcmd ( "say_team /rd", "fResetDeaths" );
register_clcmd ( "say_team rd", "fResetDeaths" );
register_clcmd ( "say_team /resetdeads", "fResetDeaths" );
register_clcmd ( "say_team resetdeads", "fResetDeaths" );
}
public fResetDeaths ( id ) {
if ( !IsOwner ( id ) || !IsCoOwner ( id ) || Limit [ id ] >= 3 )
return 1;
else {
cs_set_user_deaths ( id, 0 );
chat_color ( id, "!g[NORD DEATHS]!n Ti-ai resetat decesele!" );
Limit [ id ]++;
}
return 1;
}
stock bool: IsOwner ( id ) {
if ( get_user_flags ( id ) & read_flags ( "abcdefghijklmnopqrstuz" ) )
return true;
return false;
}
stock bool: IsCoOwner ( id ) {
if ( get_user_flags ( id ) & read_flags ( "abcdefghijklmnopqrst" ) )
return true;
return false;
}
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[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i])
write_string(msg)
message_end()
}
}
}
Nume: Reset Deads
Versiune: 1.0
Link oficial: aici
Instalare:
1. Fisierul Reset_Deads.sma il puneti in addons/amxmodx/scripting
2. Fisierul Reset_Deads..amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:
- Cod:
Reset_Deads.amxx
- Cod:
stock bool: IsOwner ( id ) {
if ( get_user_flags ( id ) & read_flags ( "abcdefghijklmnopqrstuz" ) )
return true;
return false;
}
stock bool: IsCoOwner ( id ) {
if ( get_user_flags ( id ) & read_flags ( "abcdefghijklmnopqrst" ) )
Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -
Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator): -
Comenzi publice (se tasteaza in joc prin apasarea tastei Y): -
Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini): -
Imagini: -
CelRau- Registered user
- Mesaje : 184
Data de inscriere : 26/11/2016
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum
|
|