|
Veteran Member
Join Date: Feb 2010
Location: 90's
|
11-10-2013
, 11:44
Re: [TF2] Force End Round
|
#7
|
leo, get the hell out of this thread
PHP Code:
public Action:Command_ForceWin(iClient, iArgs) { if(iArgs != 1) { ReplyToCommand(iClient, "Usage: sm_forcewin <teamnum>\n0 - Draw, 2 - Red, 3 - Blue"); return Plugin_Handled; } new String:sBuffer[4]; GetCmdArg(1, sBuffer, sizeof(sBuffer)); new iTeam = StringToInt(sBuffer); if(iTeam != 0 && iTeam != 2 && iTeam != 3) { ReplyToCommand(iClient, "Usage: sm_forcewin <teamnum>\n0 - Draw, 2 - Red, 3 - Blue"); return Plugin_Handled; } new iFlags = GetCommandFlags("mp_forcewin"); SetCommandFlags( "mp_forcewin", iFlags & ~FCVAR_CHEAT ); ServerCommand( "mp_forcewin %i", iTeam ); SetCommandFlags( "mp_forcewin", iFlags ); if(iClient>0 && iClient<=MaxClients) LogMessage("%L forced team #%i win", iClient, iTeam); else LogMessage("CONSOLE forced team #%i win", iTeam); return Plugin_Handled; }
Last edited by Leonardo; 11-10-2013 at 11:46.
|
|
|
|