User
Pass
2FA
 
 

cerere editare plugin,da e mica cererea

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources
Author Message992
DiaNNa ;x

[Mentally Stable]



Status: Offline
(since 28-02-2011 20:24)
Joined: 31 Mar 2009
Posts: 98, Topics: 16
Location: Romania

Reputation: 239.8
Votes: 4

Post Posted: 04-01-2010, 23:07:49 | Translate post to: ... (Click for more languages)

Daca se poate va rog modificati si mie pluginul auto_restart.amxx al lui aNNakin in asa fel incat sa dea restart dupa 1 runda,nu dupa 20 sec,la inceputul primei runde sau alte secunde.vreau dupa ce s-a terminat prima runda sa se dea restart.multumesc

[sursa=]#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 !" );
ColorChat( 0, GREEN, "^x04 Restart Live!Jocul a inceput!" );
ColorChat( 0, GREEN, "^x04 oNe.LaLeaGane.ro HF&GL" );
}

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 }
*/[/sursa]

Pentru ca am folosit search/google si gasesc numai auto_restart.amxx care da rr dupa 20 sec,la inceputul rundei

0 0
  
Back to top
View user's profile Send private message
XphaN

[mojito.freakz.ro]



Status: Offline
(since 31-01-2014 18:23)
Joined: 30 Mar 2009
Posts: 130, Topics: 20
Location: Bucuresti

Reputation: 126.3
Votes: 9

 
Post Posted: 27-01-2010, 02:06:10 | Translate post to: ... (Click for more languages)

Incearca pe http://forums.alliedmods.net/
Au mai mult spirit de viata in ei -



0 0
  
Back to top
View user's profile Send private message Yahoo! Messenger ID
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Freakz Forum Index -> Trash Bin -> CS 2006-2019 (Archived) -> Resources  


The time now is 29-03-2024, 13:39:21
Copyright info

Based on phpBB ro/com
B

 
 
 







I forgot my password


This message appears only once, so
like us now until it's too late ! :D
x