Reset Deads

In jos

descarca Reset Deads

Mesaj Scris de DarkArms la data de Dum Noi 13, 2016 6:40 pm

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:
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
4. Schimbati de aici flagurile daca este nevoie [ liniile 43 si 54 ]:
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: -

DarkArms
Founders
Founders

Mesaje : 226
Data de inscriere : 23/09/2016
Varsta : 16
Localizare : Terra

http://lowgamers.forumgratuit.ro

Sus In jos

descarca Re: Reset Deads

Mesaj Scris de Dracu la data de Dum Noi 13, 2016 9:29 pm

Good Job!
avatar
Dracu
Moderators
Moderators

Mesaje : 193
Data de inscriere : 11/11/2016

Sus In jos

descarca Re: Reset Deads

Mesaj Scris de Tipu la data de Mier Noi 23, 2016 1:31 pm

Good Job!
avatar
Tipu
Administrators
Administrators

Mesaje : 151
Data de inscriere : 22/11/2016

Sus In jos

descarca Re: Reset Deads

Mesaj Scris de CelRau la data de Dum Noi 27, 2016 7:50 pm

Good Job!
avatar
CelRau
Registered user
Registered user

Mesaje : 184
Data de inscriere : 26/11/2016

Sus In jos

descarca Re: Reset Deads

Mesaj Scris de Continut sponsorizat


Continut sponsorizat


Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum