FlacoBey

Untitled

May 12th, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1. #include <sourcemod>
  2. #include <sdktools>
  3.  
  4. Handle sdkActivateMolotov;
  5.  
  6. public OnPluginStart()
  7. {
  8.     Handle hGameConf = LoadGameConfigFile("Molotov");
  9.     if( hGameConf == null )
  10.         SetFailState("Couldn't find the offsets and signatures file. Please, check that it is installed correctly.");
  11.     StartPrepSDKCall(SDKCall_Static);
  12.     if( PrepSDKCall_SetFromConf(hGameConf, SDKConf_Signature, "CMolotovProjectile_Create") == false )
  13.     {
  14.         SetFailState("Could not load the \"CMolotovProjectile_Create\" gamedata signature.");
  15.     }
  16.     sdkActivateMolotov = EndPrepSDKCall();
  17.     if( sdkActivateMolotov == null )
  18.         SetFailState("Could not prep the \"CMolotovProjectile_Create\" function.");
  19.        
  20.     //RegConsoleCmd("sm_molotov", MolotovTest)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment