mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 19:53: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) {
|
||||
int special = GetClientOfUserId(specialID);
|
||||
// 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
|
||||
if(GetClientTeam(special) == 2 && g_iPendingSurvivorAdd && GetEntProp(special, Prop_Send, "m_humanSpectatorUserID") == 0) {
|
||||
g_iPendingSurvivorAdd = false;
|
||||
|
|
|
@ -435,7 +435,7 @@ bool AddSurvivor() {
|
|||
return false;
|
||||
}
|
||||
|
||||
int i = CreateFakeClient("GuessWhoBot");
|
||||
int i = CreateFakeClient("FTTSurvivorBot");
|
||||
bool result;
|
||||
if (i > 0) {
|
||||
if (DispatchKeyValue(i, "classname", "SurvivorBot")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue