49 lines
1.7 KiB
SourcePawn
49 lines
1.7 KiB
SourcePawn
#pragma semicolon 1
|
|
|
|
#include <sourcemod>
|
|
|
|
#if defined INFO_INCLUDES
|
|
#include "info/constants.sp"
|
|
#include "info/enums.sp"
|
|
#include "info/variables.sp"
|
|
#endif
|
|
|
|
public Action Timer_Hints(Handle hTimer) {
|
|
int iRandom = GetRandomInt(1, 6);
|
|
if(iRandom == 1)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintBuildInfo");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x03 You can build sentries via your PDA or with the command \x04/s");
|
|
else if(iRandom == 2)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintDropMetal");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x04 /d <amount> \x03to drop metal for other players.");
|
|
else if(iRandom == 3)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintMetalStatus");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x03 Check everyone's metal status with \x04/m ");
|
|
else if(iRandom == 4)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintMetalTransfer");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x03 Transfer metal between your comrades \x04/t <target> <amount> ");
|
|
else if(iRandom == 5)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintCheckWave");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x03 Check on what wave you're on with \x04/w ");
|
|
else if(iRandom == 6)
|
|
CPrintToChatAll("%s %t", PLUGIN_PREFIX, "hintDeath");
|
|
//PrintToChatAll("\x04[\x03TD\x04]\x03 Dying will make you lose half your metal! ");
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
public Action Timer_Reset(Handle hTimer) {
|
|
SetPassword("", true, true);
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
public Action RespawnPlayer(Handle hTimer, any iClient) {
|
|
if (IsValidClient(iClient)) {
|
|
TF2_RespawnPlayer(iClient);
|
|
}
|
|
return Plugin_Continue;
|
|
}
|
|
|
|
public Action Timer_EnableUnlockButton(Handle hTimer) {
|
|
g_bCanGetUnlocks = true;
|
|
return Plugin_Continue;
|
|
} |