Implemented request amb237 - added ServerPrint to Fakemeta

This commit is contained in:
Scott Ehlert
2007-04-30 18:29:33 +00:00
parent fd8489d088
commit 897ed0cb10
6 changed files with 23 additions and 4 deletions

View File

@ -1072,6 +1072,11 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params)
(*g_engfuncs.pfnClientPrintf)(INDEXENT2(index), static_cast<PRINT_TYPE>(iparam1), temp);
return 1;
case EngFunc_ServerPrint: // void ) (const char *szMsg);
temp = MF_GetAmxString(amx, params[2], 0, &len);
(*g_engfuncs.pfnServerPrint)(temp);
return 1;
default:
MF_LogError(amx, AMX_ERR_NATIVE, "Unknown engfunc type %d", type);
return 0;