Added DLLFunc_Clientinfo something or other
This commit is contained in:
		| @@ -211,6 +211,13 @@ static cell AMX_NATIVE_CALL dllfunc(AMX *amx,cell *params) | |||||||
| 		CHECK_ENTITY(index); | 		CHECK_ENTITY(index); | ||||||
| 		iparam1 = gpMetaUtilFuncs->pfnCallGameEntity(PLID,STRING(ALLOC_STRING(temp)),VARS(INDEXENT2(index))); | 		iparam1 = gpMetaUtilFuncs->pfnCallGameEntity(PLID,STRING(ALLOC_STRING(temp)),VARS(INDEXENT2(index))); | ||||||
| 		return iparam1; | 		return iparam1; | ||||||
|  | 	case	DLLFunc_ClientUserInfoChanged: // void ) (edict_t *pEntity, char *infobuffer) | ||||||
|  | 		index = cRet[0]; | ||||||
|  | 		CHECK_ENTITY(index); | ||||||
|  | 		gpGamedllFuncs->dllapi_table->pfnClientUserInfoChanged(INDEXENT2(index),(*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index))); | ||||||
|  | 		return 1; | ||||||
|  |  | ||||||
|  |  | ||||||
| 	default: | 	default: | ||||||
| 		MF_Log("Unknown dllfunc entry."); | 		MF_Log("Unknown dllfunc entry."); | ||||||
| 		MF_RaiseAmxError(amx, AMX_ERR_NATIVE); | 		MF_RaiseAmxError(amx, AMX_ERR_NATIVE); | ||||||
|   | |||||||
| @@ -48,7 +48,8 @@ enum | |||||||
| 	DLLFunc_CreateInstancedBaselines,	// void ) ( void ); | 	DLLFunc_CreateInstancedBaselines,	// void ) ( void ); | ||||||
| 	DLLFunc_pfnAllowLagCompensation,	// int )( void ); | 	DLLFunc_pfnAllowLagCompensation,	// int )( void ); | ||||||
| 	// I know this does not fit with DLLFUNC(), but I dont want another native just for it. | 	// I know this does not fit with DLLFUNC(), but I dont want another native just for it. | ||||||
| 	MetaFunc_CallGameEntity	// bool	(plid_t plid, const char *entStr,entvars_t *pev); | 	MetaFunc_CallGameEntity,	// bool	(plid_t plid, const char *entStr,entvars_t *pev); | ||||||
|  | 	DLLFunc_ClientUserInfoChanged // void ) (edict_t *pEntity, char *infobuffer) | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif //_INCLUDE_DLLFUNC_H | #endif //_INCLUDE_DLLFUNC_H | ||||||
|   | |||||||
| @@ -962,7 +962,6 @@ static cell AMX_NATIVE_CALL engfunc(AMX *amx, cell *params) | |||||||
| 		temp2 = MF_GetAmxString(amx,params[4],1,&len); | 		temp2 = MF_GetAmxString(amx,params[4],1,&len); | ||||||
| 		(*g_engfuncs.pfnSetClientKeyValue)(index,(*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index)),temp,temp2); | 		(*g_engfuncs.pfnSetClientKeyValue)(index,(*g_engfuncs.pfnGetInfoKeyBuffer)(INDEXENT2(index)),temp,temp2); | ||||||
| 		return 1; | 		return 1; | ||||||
|  |  | ||||||
| 	default: | 	default: | ||||||
| 		LOG_CONSOLE(PLID,"[NS2AMX] Unknown engfunc type provided."); | 		LOG_CONSOLE(PLID,"[NS2AMX] Unknown engfunc type provided."); | ||||||
| 		return 0; | 		return 0; | ||||||
|   | |||||||
| @@ -77,7 +77,7 @@ enum { | |||||||
| 	EngFunc_WriteAngle,		// void (float) | 	EngFunc_WriteAngle,		// void (float) | ||||||
| 	EngFunc_InfoKeyValue,	// char*	)			(char *infobuffer, char *key); | 	EngFunc_InfoKeyValue,	// char*	)			(char *infobuffer, char *key); | ||||||
| 	EngFunc_SetKeyValue,	// void )			(char *infobuffer, char *key, char *value); | 	EngFunc_SetKeyValue,	// void )			(char *infobuffer, char *key, char *value); | ||||||
| 	EngFunc_SetClientKeyValue	 // void )		(int clientIndex, char *infobuffer, char *key, char *value); | 	EngFunc_SetClientKeyValue,	 // void )		(int clientIndex, char *infobuffer, char *key, char *value); | ||||||
| }; | }; | ||||||
|  |  | ||||||
| #endif //_ENGFUNC_INCLUDE_H | #endif //_ENGFUNC_INCLUDE_H | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user