SHARE
TWEET

Untitled

a guest Sep 20th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <cstrike>
  4.  
  5. static const
  6.     PLUGIN[] = "respawn",
  7.     VERSION[] = "2.1",
  8.     AUTHOR[] = "Meliodas";
  9.    
  10. public plugin_init(){
  11.     register_plugin(PLUGIN,VERSION,AUTHOR);
  12.     register_event("DeathMsg","ev_death_msg","a")
  13. }
  14. public ev_death_msg( ) {
  15.     new id = read_data(1)
  16.     new victim = read_data(2)
  17.  
  18.     if(!is_user_alive(id) || id == victim) return
  19.    
  20.     if(get_user_flags(id) & read_flags("y")) {
  21.         set_user_health(id,get_user_health(id) + 70)
  22.         set_user_armor(id,get_user_armor(id) + 70)
  23.         cs_set_user_money(id,cs_get_user_money(id) + 5500)
  24.     }
  25.     else if(get_user_flags(id) & read_flags("x")) {
  26.         set_user_health(id,get_user_health(id) + 60)
  27.         set_user_armor(id,get_user_armor(id) + 60)
  28.         cs_set_user_money(id,cs_get_user_money(id) + 4500)
  29.     }
  30.     else if(get_user_flags(id) & read_flags("w")) {
  31.         set_user_health(id,get_user_health(id) + 50)
  32.         set_user_armor(id,get_user_armor(id) + 50)
  33.         cs_set_user_money(id,cs_get_user_money(id) + 3500)
  34.     }
  35.         else if(get_user_flags(id) & read_flags("v")) {
  36.         set_user_health(id,get_user_health(id) + 40)
  37.         set_user_armor(id,get_user_armor(id) + 40)
  38.         cs_set_user_money(id,cs_get_user_money(id) + 2500)
  39.     }
  40.         else if(get_user_flags(id) & read_flags("u")) {
  41.         set_user_health(id,get_user_health(id) + 30)
  42.         set_user_armor(id,get_user_armor(id) + 30)
  43.         cs_set_user_money(id,cs_get_user_money(id) + 2000)
  44.     }
  45.         else if(get_user_flags(id) & read_flags("z")) {
  46.         set_user_health(id,get_user_health(id) + 10)
  47.         set_user_armor(id,get_user_armor(id) + 10)
  48.         cs_set_user_money(id,cs_get_user_money(id) + 1000)
  49.     }
  50. }
  51. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  52. *{\\ rtf1\\ ansi\\ ansicpg1250\\ deff0\\ deflang1048{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top