ExtraCommands: oops
This commit is contained in:
		
							parent
							
								
									54f9156d3f
								
							
						
					
					
						commit
						24e4648b16
					
				| @ -1138,9 +1138,7 @@ public Action Command_RestartRound(int client, int argc) | |||||||
| 	} | 	} | ||||||
| 	else if(argc < 1 && !g_CVar_sv_restartround.BoolValue) | 	else if(argc < 1 && !g_CVar_sv_restartround.BoolValue) | ||||||
| 	{ | 	{ | ||||||
| 		int iScoreZombies = GetTeamScore(CS_TEAM_T); | 		CreateTimer(3.0, RoundRestartSlay); | ||||||
| 
 |  | ||||||
| 		CreateTimer(3.0, RoundRestartSlay, iScoreZombies); |  | ||||||
| 		ShowActivity2(client, "\x01[SM] \x04", "\x01Restarted the round (3.0 seconds)"); | 		ShowActivity2(client, "\x01[SM] \x04", "\x01Restarted the round (3.0 seconds)"); | ||||||
| 		LogAction(client, -1, "\"%L\" restarted the round (3.0 seconds)", client); | 		LogAction(client, -1, "\"%L\" restarted the round (3.0 seconds)", client); | ||||||
| 		return Plugin_Handled; | 		return Plugin_Handled; | ||||||
| @ -1154,11 +1152,7 @@ public Action Command_RestartRound(int client, int argc) | |||||||
| 	if(g_CVar_sv_restartround.BoolValue) | 	if(g_CVar_sv_restartround.BoolValue) | ||||||
| 		CS_TerminateRound(fDelay, CSRoundEnd_Draw, true); | 		CS_TerminateRound(fDelay, CSRoundEnd_Draw, true); | ||||||
| 	else | 	else | ||||||
| 	{ | 		CreateTimer(fDelay, RoundRestartSlay); | ||||||
| 		int iScoreZombies = GetTeamScore(CS_TEAM_T); |  | ||||||
| 
 |  | ||||||
| 		CreateTimer(fDelay, RoundRestartSlay, iScoreZombies); |  | ||||||
| 	} |  | ||||||
| 
 | 
 | ||||||
| 	ShowActivity2(client, "\x01[SM] \x04", "\x01Restarted the round (%f seconds)", fDelay); | 	ShowActivity2(client, "\x01[SM] \x04", "\x01Restarted the round (%f seconds)", fDelay); | ||||||
| 	LogAction(client, -1, "\"%L\" restarted the round (%f seconds)", client, fDelay); | 	LogAction(client, -1, "\"%L\" restarted the round (%f seconds)", client, fDelay); | ||||||
| @ -1166,7 +1160,7 @@ public Action Command_RestartRound(int client, int argc) | |||||||
| 	return Plugin_Handled; | 	return Plugin_Handled; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| public Action RoundRestartSlay(Handle timer, int iScoreZombies) | public Action RoundRestartSlay(Handle timer) | ||||||
| { | { | ||||||
| 	int iHumanCount; | 	int iHumanCount; | ||||||
| 
 | 
 | ||||||
| @ -1185,14 +1179,14 @@ public Action RoundRestartSlay(Handle timer, int iScoreZombies) | |||||||
| 		return Plugin_Handled; | 		return Plugin_Handled; | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	RequestFrame(RequestFrameCallback, iScoreZombies); | 	RequestFrame(RequestFrameCallback); | ||||||
| 
 | 
 | ||||||
| 	return Plugin_Handled; | 	return Plugin_Handled; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| public void RequestFrameCallback(int iScoreZombies) | public void RequestFrameCallback() | ||||||
| { | { | ||||||
| 	SetTeamScore(CS_TEAM_T, iScoreZombies); | 	SetTeamScore(CS_TEAM_T, CS_GetTeamScore(CS_TEAM_T) - 1); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| stock void WAILA(int client, int iEntity) | stock void WAILA(int client, int iEntity) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user