core/smn_player.cpp
changeset 3913 a73cf1f26984
parent 3825 ecd2382ca37e
child 3949 3fefd8346c23
     1.1 --- a/core/smn_player.cpp	Mon May 13 14:19:17 2013 -0400
     1.2 +++ b/core/smn_player.cpp	Mon May 13 15:18:12 2013 -0400
     1.3 @@ -479,7 +479,7 @@
     1.4  		return pContext->ThrowNativeError("Client %d is not connected", client);
     1.5  	}
     1.6  
     1.7 -	return engine->GetPlayerUserId(pPlayer->GetEdict());
     1.8 +	return GetPlayerUserId(pPlayer->GetEdict());
     1.9  }
    1.10  
    1.11  static cell_t CanUserTarget(IPluginContext *pContext, const cell_t *params)
    1.12 @@ -1118,7 +1118,11 @@
    1.13  			}
    1.14  
    1.15  			UTIL_Format(message, sizeof(message), "%s%s\n", tag, buffer);
    1.16 +#if SOURCE_ENGINE == SE_DOTA
    1.17 +			engine->ClientPrintf(pPlayer->GetIndex(), message);
    1.18 +#else
    1.19  			engine->ClientPrintf(pPlayer->GetEdict(), message);
    1.20 +#endif
    1.21  			display_in_chat = true;
    1.22  		}
    1.23  	}