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

@ -652,6 +652,8 @@ void ClientPrintf_post(edict_t* pEdict, PRINT_TYPE ptype, const char *szMsg)
RETURN_META(MRES_IGNORED);
}
SIMPLE_VOID_HOOK_CONSTSTRING(ServerPrint);
/*
* Beginning of Engine->Game DLL hooks
*/
@ -1481,6 +1483,10 @@ static cell AMX_NATIVE_CALL register_forward(AMX *amx, cell *params)
fId = MF_RegisterSPForwardByName(amx, funcname, FP_CELL, FP_CELL, FP_STRING, FP_DONE);
ENGHOOK(ClientPrintf);
break;
case FM_ServerPrint:
fId = MF_RegisterSPForwardByName(amx, funcname, FP_STRING, FP_DONE);
ENGHOOK(ServerPrint);
break;
#if 0
// I know this does not fit with DLLFUNC(), but I dont want another native just for it.