mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 19:03:21 +00:00
Fix Addsurvivor
This commit is contained in:
parent
8fd79609d3
commit
8d05131fb2
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ static float SPIT_VEL[3] = { 0.0, 0.0, -1.0 };
|
||||||
public Action Timer_CheckSpecial(Handle h, int specialID) {
|
public Action Timer_CheckSpecial(Handle h, int specialID) {
|
||||||
int special = GetClientOfUserId(specialID);
|
int special = GetClientOfUserId(specialID);
|
||||||
// Check if new player is the spawned special:
|
// Check if new player is the spawned special:
|
||||||
if(spIsActive && special > 0 && IsFakeClient(special) && GetClientTeam(special) == 3) {
|
if(spIsActive && special > 0 && IsFakeClient(special)) {
|
||||||
//g_iPendingSurvivorAdd
|
//g_iPendingSurvivorAdd
|
||||||
if(GetClientTeam(special) == 2 && g_iPendingSurvivorAdd && GetEntProp(special, Prop_Send, "m_humanSpectatorUserID") == 0) {
|
if(GetClientTeam(special) == 2 && g_iPendingSurvivorAdd && GetEntProp(special, Prop_Send, "m_humanSpectatorUserID") == 0) {
|
||||||
g_iPendingSurvivorAdd = false;
|
g_iPendingSurvivorAdd = false;
|
||||||
|
|
|
@ -435,7 +435,7 @@ bool AddSurvivor() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int i = CreateFakeClient("GuessWhoBot");
|
int i = CreateFakeClient("FTTSurvivorBot");
|
||||||
bool result;
|
bool result;
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
if (DispatchKeyValue(i, "classname", "SurvivorBot")) {
|
if (DispatchKeyValue(i, "classname", "SurvivorBot")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue