Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
[CERERE] Modificare plugin.
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
Author
Message
642
Fr0zeNN
[Technique]
Status: Offline
(since 13-10-2018 00:30)
Joined: 12 Feb 2015
Posts: 688
,
Topics: 56
Location:
Romania
Reputation:
61.8
Votes
: 46
Posted: 02-07-2017, 18:03:47
| Translate post to:
... (
Click for more languages
)
Salut. Imi poate modifica si mie cineva acest plugin va rog frumos
Spoiler:
/*
---=====[ Restart @ SuD.Freakz.Ro ]====---
Credite: Ulquiorra ( Codul HUD )
Restart @ SuD.Freakz.Ro by AZzeL 2014
*/
#include <amxmodx>
#include <amxmisc>
#pragma tabsize 0
#define PLUGIN "Restart @ SuD.Freakz.Ro"
#define VERSION "1.1"
#define AUTHOR "AZzeL"
#define iNameRed 0
#define iNameGreen 255
#define iNameBlue 255
new Seconds = 60; // Secundele pana la Auto-Restart
new const g_SuD_TAG[ ] = "SuD.Freakz.Ro"; // TAG-ul
new const g_SuD_MSG[ ] = "LIVE"; // Mesaj-ul
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /live", "SuD_Restart", ADMIN_KICK);
register_clcmd("say /restart", "SuD_Restart", ADMIN_KICK);
register_clcmd("say_team /live", "SuD_Restart", ADMIN_KICK);
register_clcmd("say_team /restart", "SuD_Restart", ADMIN_KICK);
set_task(1.0, "ShowCountDown", 1234,_,_,"b",_);
}
public ShowCountDown()
{
set_hudmessage( iNameRed, iNameGreen, iNameBlue, -1.0, is_user_alive( 0 ) ? 0.03 : 0.27 , 0, _, 1.0, _, _ );
show_hudmessage( 0, "[SuD]^nAuto-Restart^n-=[ %d ]=-", Seconds );
Seconds--;
if(Seconds <= 0)
{
if(task_exists(1234))
remove_task(1234);
set_task(1.0,"Auto_SuD_Restart");
return;
}
}
public Auto_SuD_Restart( id )
{
set_task(0.0,"SuD_ScreenEffect")
client_cmd(0,"spk ^"life in one seconds^"")
server_cmd("sv_restart 1")
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
}
public SuD_Restart( id, level, cid )
{
if( !cmd_access( id, level, cid, 1 ) )
return PLUGIN_HANDLED;
new name[ 32 ];
get_user_name( id, name, charsmax( name ) );
set_task(0.0,"SuD_ScreenEffect")
client_cmd(0,"spk ^"life in one seconds^"")
server_cmd("sv_restart 1")
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.v%s.g] |----------[.v%s !.g]----------|", g_SuD_TAG, g_SuD_MSG )
SuD_Color(id, ".g[.vADMIN.g] .e%s .ga dat .vRestart .gla server !", name )
return PLUGIN_HANDLED;
}
public SuD_ScreenEffect(id)
{
new players[32], playerx,a,inum
get_players(players, inum)
for(a = 0; a < inum; ++a) {
playerx = players[a];
switch (get_user_team(playerx)){
case 1: {
Fade(playerx,255,0,0,30)
}
case 2: {
Fade(playerx,0,0,255,30)
}
case 3:{
Fade(playerx,0,255,0,30)
}
}
}
}
stock Fade(index,red,green,blue,alpha)
{
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},index)
write_short(5<<10)
write_short(5<<10)
write_short(5<<12)
write_byte(red)
write_byte(green)
write_byte(blue)
write_byte(alpha)
message_end()
}
stock SuD_Color( const id, const input[ ], any:... )
{
new count = 1, players[ 32 ];
static msg[ 191 ];
vformat( msg, 190, input, 3 );
replace_all( msg, 190, ".v", "^4" ); /* verde */
replace_all( msg, 190, ".g", "^1" ); /* galben */
replace_all( msg, 190, ".e", "^3" ); /* ct=albastru | t=rosu */
replace_all( msg, 190, ".x", "^0" ); /* normal-echipa */
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( );
}
}
}
}
Vreau sa nu se mai dea restart dupa 60 de secunde,vreau sa se dea auto-restart dupa inceperea rundei a 2-a.
Fondator & Detinator SUD.FREAKZ.RO
0
0
Back to top
Fr0zeNN
[Technique]
Status: Offline
(since 13-10-2018 00:30)
Joined: 12 Feb 2015
Posts: 688
,
Topics: 56
Location:
Romania
Reputation:
61.8
Votes
: 46
Posted: 06-07-2017, 07:34:45
| Translate post to:
... (
Click for more languages
)
Rezolvat se poate da T/C
Fondator & Detinator SUD.FREAKZ.RO
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Locked by
GoreSpintecatoru.
, 06 July 2017 07:06
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Plugins - Help / Support
The time now is 28-04-2024, 22:58:44
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details