Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Cerere 2 Pluginuri
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
2075
XtzU
[Mentally Stable]
Status: Offline
(since 04-11-2010 22:09)
Joined: 15 Nov 2009
Posts: 6
,
Topics: 3
Location:
Romania
Reputation:
144.4
Votes
: 4
Posted: 01-12-2009, 10:01:50
| Translate post to:
... (
Click for more languages
)
Buna ziua As dori si acel plugin care poti da pe server /retry doar de 3 ori sau de cate ori vreau eu sa il pun.
Si as mai dori modificarea acestui plugin
Code:
#include <amxmodx>
public restart_time()
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)
public restart_map() {
set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(0,"[AMXX] Automatic Round-Restart!")
set_cvar_float("sv_restart",2.0)
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Auto-Restart","1.00","ToT | V!PER")
register_event("TextMsg","restart_time","a","2&#Game_C")
register_cvar("amx_autorestart","20.0")
return PLUGIN_CONTINUE
}
Sami apara mesaju in chat nu ca mesaj hud .Multumesc frumos
0
0
Back to top
smecheru17
[Banned user]
Status: Offline
(since 22-04-2010 20:17)
Joined: 03 Nov 2009
Posts: 123
,
Topics: 31
Location:
Bucuresti
Reputation:
126.2
Votes
: 5
Posted: 01-12-2009, 11:13:20
| Translate post to:
... (
Click for more languages
)
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define ACCESS ADMIN_SLAY
new Float:g_LastRestart[33]
public plugin_init()
{
register_plugin("Restart","2.0","Alka")
register_clcmd("say /restart","say_restart",ACCESS)
}
public say_restart(id)
{
if(!(get_user_flags(id) & ACCESS))
return
new Float:Time = halflife_time()
if(Time - g_LastRestart[id] < 10.0)
return
g_LastRestart[id] = Time
server_cmd("sv_restart 1")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
client_print(0, print_chat, "[-----------------LIVE!---------------]")
set_hudmessage(255,150, 0, 0.04, 0.47, 0, 6.0, 7.0)
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
show_hudmessage(0, "Cs-New-Still" )
}
dai restart prin comanda
say /restart
sper sa te ajute
0
0
Back to top
XtzU
[Mentally Stable]
Status: Offline
(since 04-11-2010 22:09)
Joined: 15 Nov 2009
Posts: 6
,
Topics: 3
Location:
Romania
Reputation:
144.4
Votes
: 4
Posted: 01-12-2009, 16:22:32
| Translate post to:
... (
Click for more languages
)
Pai problema este ca nu vreau sa dau eu /restart ci automat .Deaia am postat si acel sma sa mi-l faceti in asa fel incat sa se dea restart dupa prima runda .
0
0
Back to top
smecheru17
[Banned user]
Status: Offline
(since 22-04-2010 20:17)
Joined: 03 Nov 2009
Posts: 123
,
Topics: 31
Location:
Bucuresti
Reputation:
126.2
Votes
: 5
Posted: 01-12-2009, 17:28:18
| Translate post to:
... (
Click for more languages
)
Code:
/*
* AMXModX script.
* This file is provided as is (no warranties).
*
* Automatic Map-Restart after xx Seconds
* by ToT|V!PER (
[email protected]
)
*
* Homepage: http://www.totclan.de
* IRC-Chan: #totclan @ irc.de.quakenet.org
*
* -------------------------------------------------------
* Changelog: (Last-Update 07.01.2005)
* V1.00: Complete Rewrite, removed many useless functions
* V0.92: Complete Rewrite + added admin functions
* - option to use hud + client-says
* V0.5 : First Public Release
* -------------------------------------------------------
*
* Put in amxx.cfg or server.cfg:
*
* amx_auto_rr_time < float > (default: 20 seconds)
* Example:
* -> amx_auto_rr_time 45.0 = Restart after 45 Seconds
*
*/
#include <amxmodx>
public restart_time()
set_task (get_cvar_float("amx_autorestart"),"restart_map",0)
public restart_map() {
set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)
show_hudmessage(0,"[New-Still.idle.ro] Automatic Round-Restart!")
set_cvar_float("sv_restart",2.0)
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Auto-Restart","1.00","ToT | V!PER")
register_event("TextMsg","restart_time","a","2&#Game_C")
register_cvar("amx_autorestart","20.0")
return PLUGIN_CONTINUE
}
0
0
Back to top
XtzU
[Mentally Stable]
Status: Offline
(since 04-11-2010 22:09)
Joined: 15 Nov 2009
Posts: 6
,
Topics: 3
Location:
Romania
Reputation:
144.4
Votes
: 4
Posted: 01-12-2009, 17:38:48
| Translate post to:
... (
Click for more languages
)
As dori si eu modificarea acestui plugin Auto Restart
Code:
#include < amxmodx >
enum Color
{
YELLOW = 1,
GREEN,
TEAM_COLOR,
GREY,
RED,
BLUE,
}
new TeamInfo;
new SayText;
new MaxSlots;
new TeamName[ ][ ] =
{
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
new bool: g_Restart = true;
public plugin_init ( )
{
register_plugin ( "Auto Restart", "1.0", "aNNakin" );
register_event ( "TextMsg", "game_comencing", "a", "2&#Game_C" );
register_logevent ( "round_end", 2, "1=Round_End" );
TeamInfo = get_user_msgid ( "TeamInfo" );
SayText = get_user_msgid ( "SayText" );
MaxSlots = get_maxplayers ( );
}
public game_comencing ( )
g_Restart = true;
public round_end ( )
{
if( g_Restart )
{
server_cmd ( "sv_restart 2" );
ColorChat( 0, GREEN, "^x04 Auto Restart Round !" );
}
g_Restart = false;
}
public ColorChat( id, Color:type, const msg[ ], { Float, Sql, Result, _ }:... )
{
static message[ 256 ];
switch( type )
{
case YELLOW: message[ 0 ] = 0x01;
case GREEN: message[ 0 ] = 0x04;
default: message[ 0 ] = 0x03;
}
vformat( message[ 1 ], 251, msg, 4 );
message[ 192 ] = '^0';
new team, ColorChange, index, MSG_Type;
if( id )
{
MSG_Type = MSG_ONE;
index = id;
}
else
{
index = FindPlayer ( );
MSG_Type = MSG_ALL;
}
team = get_user_team( index );
ColorChange = ColorSelection( index, MSG_Type, type );
ShowColorMessage( index, MSG_Type, message);
if( ColorChange )
Team_Info( index, MSG_Type, TeamName[ team ] );
}
ShowColorMessage ( id, type, message[ ] )
{
message_begin ( type, SayText, _, id );
write_byte ( id )
write_string ( message );
message_end ();
}
Team_Info ( id, type, team[ ] )
{
message_begin (type, TeamInfo, _, id );
write_byte ( id );
write_string ( team );
message_end ();
return 1;
}
ColorSelection ( index, type, Color:Type )
{
switch( Type )
{
case RED:
return Team_Info( index, type, TeamName[ 1 ] );
case BLUE:
return Team_Info( index, type, TeamName[ 2 ] );
case GREY:
return Team_Info(index, type, TeamName[ 0 ] );
}
return 0;
}
FindPlayer ( )
{
for ( new i = 1; i <= MaxSlots; i++ )
if ( is_user_connected( i ) )
return i;
return -1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
El da restart exact cum sa schimbat harta Restart.Eu vreau ca atunci cand sa schimbat harta sa se joace prima runda si pe urma sa se dea restart.Multumesc frumos
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 19-07-2025, 19:58:17
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