Format everything

This commit is contained in:
zaCade 2019-03-17 15:10:27 +01:00
parent 9a2e8b4eb7
commit 7e10e6f019
16 changed files with 391 additions and 403 deletions

View File

@ -62,7 +62,7 @@ stock UpdateHUDClient(client)
}
new clients[1];
clients[0] = client;
clients[0] = client;
UpdateHUD(clients, 1);
}

View File

@ -24,7 +24,7 @@ InitWeaponRestrict()
ClientHookUse(client)
{
SDKHook(client, SDKHook_WeaponCanUse, Weapon_CanUse);
SDKHook(client, SDKHook_WeaponCanUse, Weapon_CanUse);
}
public Action:BuyHook(client, argc)
@ -275,5 +275,5 @@ public Action:RemoveSpawnWeapon(Handle:timer, any:weapon)
if (IsValidEdict(weapon))
{
RemoveEdict(weapon);
}
}
}

View File

@ -258,21 +258,22 @@ ApplyZombieHealth(client, zombieid)
{
if (IsValidZombieID(zombieid))
{
new iCount = 0;
new iClientCount = 0;
for (new i = 1; i <= MaxClients; i++)
{
if (IsValidClient(i) && (GetClientTeam(i) == 3) && IsPlayerAlive(i))
{
iCount++;
}
}
if (iCount == 0)
{
iCount++;
}
for (new i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == CS_TEAM_CT)
{
iClientCount++;
}
}
SetEntityHealth(client, arrayZombies[zombieid][data_health]*iCount);
if (iClientCount == 0)
{
iClientCount++;
}
SetEntityHealth(client, arrayZombies[zombieid][data_health] * iClientCount);
}
}
@ -309,16 +310,3 @@ ApplyZombieFOV(client, zombieid)
SetPlayerFOV(client, arrayZombies[zombieid][data_fov]);
}
}
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------
int:IsValidClient(client, nobots = true)
{
if (client <= 0 || client > MaxClients || !IsClientConnected(client) || (nobots && IsFakeClient(client)))
{
return false;
}
return IsClientInGame(client);
}

View File

@ -6,22 +6,22 @@
* ====================
*/
#define Target_Bombed 0 // Target Successfully Bombed!
#define VIP_Escaped 1 // The VIP has escaped!
#define VIP_Assassinated 2 // VIP has been assassinated!
#define Terrorists_Escaped 3 // The terrorists have escaped!
#define CTs_PreventEscape 4 // The CT's have prevented most of the terrorists from escaping!
#define Escaping_Terrorists_Neutralized 5 // Escaping terrorists have all been neutralized!
#define Bomb_Defused 6 // The bomb has been defused!
#define CTs_Win 7 // Counter-Terrorists Win!
#define Terrorists_Win 8 // Terrorists Win!
#define Round_Draw 9 // Round Draw!
#define All_Hostages_Rescued 10 // All Hostages have been rescued!
#define Target_Saved 11 // Target has been saved!
#define Hostages_Not_Rescued 12 // Hostages have not been rescued!
#define Terrorists_Not_Escaped 13 // Terrorists have not escaped!
#define VIP_Not_Escaped 14 // VIP has not escaped!
#define Game_Commencing 15 // Game Commencing!
#define Target_Bombed 0 // Target Successfully Bombed!
#define VIP_Escaped 1 // The VIP has escaped!
#define VIP_Assassinated 2 // VIP has been assassinated!
#define Terrorists_Escaped 3 // The terrorists have escaped!
#define CTs_PreventEscape 4 // The CT's have prevented most of the terrorists from escaping!
#define Escaping_Terrorists_Neutralized 5 // Escaping terrorists have all been neutralized!
#define Bomb_Defused 6 // The bomb has been defused!
#define CTs_Win 7 // Counter-Terrorists Win!
#define Terrorists_Win 8 // Terrorists Win!
#define Round_Draw 9 // Round Draw!
#define All_Hostages_Rescued 10 // All Hostages have been rescued!
#define Target_Saved 11 // Target has been saved!
#define Hostages_Not_Rescued 12 // Hostages have not been rescued!
#define Terrorists_Not_Escaped 13 // Terrorists have not escaped!
#define VIP_Not_Escaped 14 // VIP has not escaped!
#define Game_Commencing 15 // Game Commencing!
#define DXLEVEL_MIN 90