daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. actionXP(id, OverrideTimer)
  2. {
  3.     //get game time
  4.     new Float:fTime = halflife_time();
  5.    
  6.     if (fTime >= gfXPNextUse[id] || OverrideTimer)
  7.     {
  8.         if ( cs_get_user_team ( id ) == CS_TEAM_T )
  9.         {
  10.             new xp_give = get_pcvar_num(bm_xp_givexp)
  11.             hnsxp_add_user_xp(id, xp_give);
  12.             new szName[ 33 ];
  13.             get_user_name( id, szName, 32 );
  14.             ColorChat(0, GREEN, "%s^x03 [ %s ]^x01 is now got^x03 [%d]^x01 XP!", gszPrefix, szName, xp_give);
  15.             gfXPNextUse[id] = fTime + get_cvar_float("bm_xpcooldown");
  16.         }
  17.     }
  18.     else
  19.     {
  20.         set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
  21.         if( get_cvar_float("bm_xpcooldown") >= 600.0 )
  22.             show_hudmessage(id, "XP next use: new round", gfXPNextUse[id] - fTime);
  23.            
  24.         else     show_hudmessage(id, "XP next use: %.1f", gfXPNextUse[id] - fTime);
  25.     }
  26. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top