View Single Post
jacek2144
Senior Member
Join Date: Jun 2011
Old 02-11-2013 , 17:07   Re: Signature Request Thread
Reply With Quote #116

Quote:
Originally Posted by Peace-Maker View Post
CTFPlayer::AddPlayerAttribute(CEconItemAttrib ute *)
\x55\x8B\xEC\x8B\x45\x08\x85\xC0\x74\x2A\x50\ x81\xC1\x04\x0A\x00\x00

CTFPlayer::AwardAchievement(int, int)
\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x83\xB8\x48\ x03\x00\x00\x05\x7D\x2A
Thanks i got one more qustion

What am i doing wrong in my code?
It's not working

Code:
#include <sourcemod>
#include <sdktools>
 
new Handle:hGameConf;
new Handle:hGiveAchievement;
 
public OnPluginStart()
{
 hGameConf = LoadGameConfigFile("tf2.achievements_manager");
 StartPrepSDKCall(SDKCall_Player);
 PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "CTFPlayer::AwardAchievement");
 PrepSDKCall_SetReturnInfo(SDKType_CBasePlayer, SDKPass_Pointer);
 PrepSDKCall_AddParameter(SDKType_PlainOldData, SDKPass_Plain);
 PrepSDKCall_AddParameter(SDKType_String, SDKPass_Plain);
 hGiveAchievement = EndPrepSDKCall();
 
 RegConsoleCmd("achievement_debug_mvm", GiveAchievement);
}
public Action:GiveAchievement(client, args)
{
 return SDKCall(hGiveAchievement, client, 2306, "Brotherhood of Steel");
}
jacek2144 is offline