SHARE
TWEET

Untitled

a guest Apr 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public client_connect(id)
  2.     HP[id]=0
  3.  
  4. public Um_HP(id){
  5.  
  6.     new formats[256];
  7.     format( formats, charsmax( formats ), "\r[BaseBuilder]\y^nUlepszasz: \rWiecej Zycia na start^n\yKoszt: \w%d^n\yGildia otrzymuje \r+%d\y zycia na start!^n\yPosiadasz \r%d\y Monet z Gildii do wydania na ulepszenie!",get_pcvar_num(potrzebneM1)*(HP[id]+1),HP[id]*5,PobierzEXPKlanu( szNazwaKlanuGracza[ id ] ))
  8.     new menu = menu_create( formats, "Um_HP_handle" )
  9.    
  10.     format(formats,charsmax(formats),"Ulepsz")
  11.     menu_additem(menu,formats)
  12.     format(formats,charsmax(formats),"Wroc")
  13.     menu_additem(menu,formats)
  14.    
  15.     menu_setprop(menu,MPROP_EXIT,MEXIT_ALL);
  16.     menu_setprop(menu,MPROP_NUMBER_COLOR,"\r");
  17.    
  18.     menu_display(id, menu,0);
  19.     return PLUGIN_HANDLED;
  20. }
  21.  
  22. public Um_HP_handle(id, menu, item){
  23.     if(item == MENU_EXIT){
  24.         menu_destroy(menu);
  25.         return PLUGIN_HANDLED;
  26.     }
  27.     item++;
  28.     switch(item){
  29.         case 1:{
  30.             if((get_pcvar_num(potrzebneM1)*(HP[id]+1)) > PobierzEXPKlanu( szNazwaKlanuGracza[ id ] )){
  31.                 Um_HP(id);
  32.                 menu_destroy(menu);
  33.                 return PLUGIN_HANDLED;
  34.             }
  35.             UstawEXPKlanu( szNazwaKlanuGracza[ id ], PobierzEXPKlanu( szNazwaKlanuGracza[ id ] ) -get_pcvar_num(potrzebneM1)*(HP[id]+1))
  36.             HP[id]++;
  37.             Um_HP(id);
  38.             menu_destroy(menu);
  39.             return PLUGIN_HANDLED;
  40.         }
  41.         case 2:{
  42.             upDateSkill(id)
  43.         }
  44.     }
  45.     menu_destroy(menu);
  46.     return PLUGIN_HANDLED;
  47. }
  48.  
  49. public spawned(id){
  50.     if(is_user_alive(id) && cs_get_user_team(id)==CS_TEAM_CT){
  51.         set_user_health(id,get_user_health(id)+(HP[id]*5)) 
  52.     }
  53. }
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