updated icecap plugins so its not interfering with ztele and events. also made zombie hunting plugin aln always active
This commit is contained in:
@@ -51,17 +51,14 @@ public void OnPluginStart()
|
||||
|
||||
public Action Command_ztele(int client, const char[] Command, int Args)
|
||||
{
|
||||
if (!g_b_is_icecap_act2)
|
||||
if (g_b_is_icecap_act2)
|
||||
{
|
||||
return Plugin_Handled;
|
||||
if (IsValidClient(client))
|
||||
{
|
||||
int userid = GetClientUserId(client);
|
||||
ServerCommand("sm_forceinputplayer #%i Clearparent", userid);
|
||||
}
|
||||
}
|
||||
|
||||
if (IsValidClient(client))
|
||||
{
|
||||
int userid = GetClientUserId(client);
|
||||
ServerCommand("sm_forceinputplayer #%i Clearparent", userid);
|
||||
}
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
public void OnClientPostAdminCheck(int client)
|
||||
@@ -78,25 +75,23 @@ stock bool IsValidClient(int client)
|
||||
//right before round end deactivate gameUI and unparent players from moving vehicles.
|
||||
public void OnRoundEnd(Handle event, const char[] name, bool dontBroadcast)
|
||||
{
|
||||
if (!g_b_is_icecap_act2)
|
||||
if (g_b_is_icecap_act2)
|
||||
{
|
||||
return;
|
||||
//its the correct map if it contains icecap_escape_act2
|
||||
ServerCommand("sm_forceinput Game Deactivate; sm_forceinput Game2 Deactivate;sm_forceinput Game3 Deactivate;sm_forceinput Game4 Deactivate; sm_forceinput Gameleft Deactivate; sm_forceinput Gameright Deactivate; sm_forceinput Gameseat Deactivate; sm_forceinput Gameseat2 Deactivate; sm_forceinput Gameseat3 Deactivate; sm_forceinput Gameseat4 Deactivate; sm_forceinput Gameseat5 Deactivate; sm_forceinput Gameseat6 Deactivate;");
|
||||
ServerCommand("sm_forceinput player Clearparent;");
|
||||
ServerCommand("sm_forceinput heli kill; sm_forceinput moblie kill; sm_forceinput car kill; sm_forceinput battery kill;");
|
||||
}
|
||||
//its the correct map if it contains icecap_escape_act2
|
||||
ServerCommand("sm_forceinput Game Deactivate; sm_forceinput Game2 Deactivate;sm_forceinput Game3 Deactivate;sm_forceinput Game4 Deactivate; sm_forceinput Gameleft Deactivate; sm_forceinput Gameright Deactivate; sm_forceinput Gameseat Deactivate; sm_forceinput Gameseat2 Deactivate; sm_forceinput Gameseat3 Deactivate; sm_forceinput Gameseat4 Deactivate; sm_forceinput Gameseat5 Deactivate; sm_forceinput Gameseat6 Deactivate;");
|
||||
ServerCommand("sm_forceinput player Clearparent;");
|
||||
ServerCommand("sm_forceinput heli kill; sm_forceinput moblie kill; sm_forceinput car kill; sm_forceinput battery kill;");
|
||||
}
|
||||
|
||||
public void trigger_teleport(const char[] output, int entity_index, int client, float delay)
|
||||
{
|
||||
if (!g_b_is_icecap_act2)
|
||||
if (g_b_is_icecap_act2)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (IsValidClient(client))
|
||||
{
|
||||
int userid = GetClientUserId(client);
|
||||
ServerCommand("sm_forceinputplayer #%i Clearparent", userid);
|
||||
if (IsValidClient(client))
|
||||
{
|
||||
int userid = GetClientUserId(client);
|
||||
ServerCommand("sm_forceinputplayer #%i Clearparent", userid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user