mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 04:33:20 +00:00
Minor changes
This commit is contained in:
parent
464f7f4f9e
commit
bf362deea1
4 changed files with 19 additions and 19 deletions
|
@ -258,17 +258,28 @@ methodmap GuessWhoGame {
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsPendingPlayers() {
|
||||
for(int i = 1; i <= MaxClients; i++) {
|
||||
if(IsClientConnected(i) && !IsClientInGame(i)) {
|
||||
return true;
|
||||
// Ignores seeker
|
||||
property int AlivePlayers {
|
||||
public get() {
|
||||
int amount = 0;
|
||||
for(int i = 1; i <= MaxClients; i++) {
|
||||
if(i != currentSeeker && IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) == 2 && IsPlayerAlive(i) && !IsFakeClient(i)) {
|
||||
amount++;
|
||||
}
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
stock bool ArePlayersJoining() {
|
||||
for(int i = 1; i <= MaxClients; i++) {
|
||||
if(IsClientConnected(i) && !IsClientInGame(i)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
stock void GetHorizontalPositionFromClient(int client, float units, float finalPosition[3]) {
|
||||
float pos[3], ang[3];
|
||||
|
@ -353,17 +364,6 @@ bool Filter_IgnoreAll(int entity, int mask) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Ignores seeker
|
||||
int GetPlayersLeftAlive() {
|
||||
int amount = 0;
|
||||
for(int i = 1; i <= MaxClients; i++) {
|
||||
if(i != currentSeeker && IsClientConnected(i) && IsClientInGame(i) && GetClientTeam(i) == 2 && IsPlayerAlive(i) && !IsFakeClient(i)) {
|
||||
amount++;
|
||||
}
|
||||
}
|
||||
return amount;
|
||||
}
|
||||
|
||||
|
||||
void SetPlayerBlind(int target, int amount) {
|
||||
int targets[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue