This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 16th, 2011  |  syntax: C++  |  size: 0.49 KB  |  views: 83  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.  
  2.  
  3. //This will work for a very specific landanum, only when you use that specific landanum.
  4. void OnStart()
  5. {
  6.         AddTimer("Landanum", 1.0f, "CheckLandanum");
  7. }
  8.  
  9. void CheckLandanum(string &in asTimer)
  10. {
  11.         if(HasItem("potion_health_1"))
  12.         {
  13.                 SetLocalVarInt("Var1", 1);
  14.                 AddTimer("Landanum", 1.0f, "CheckLandanum");
  15.         }
  16.         else
  17.         {
  18.                 if(GetLocalVarInt("Var1") == 1)
  19.                 {
  20.                         OnPlayerUseLandanum();
  21.                 }
  22.                 else AddTimer("Landanum", 1.0f, "CheckLandanum");
  23.         }
  24. }
  25. void OnPlayerUseLandanum()
  26. {
  27.  
  28. }
clone this paste RAW Paste Data