Advertisement
Guest User

Untitled

a guest
Nov 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.96 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <engine>
  3. #include <hamsandwich>
  4. #include <nvault>
  5.  
  6. enum dData
  7. {
  8.     szName[32],
  9.     iPontos
  10. }
  11.  
  12. new const g_mPlayerData[][dData] =
  13. {
  14.     { "Sem Rank", 0 },
  15.     { "Bronze 1", 50 },
  16.     { "Bronze 2", 100},
  17.     { "Bronze 3", 150 },
  18.     { "Bronze 4", 200 },
  19.     { "Bronze 5", 250 },
  20.     { "Bronze Supremo", 300 },
  21.     { "Prata 1", 400 },
  22.     { "Prata 2", 500 },
  23.     { "Prata 3", 600 },
  24.     { "Prata 4", 700 },
  25.     { "Prata 5", 850 },
  26.     { "Prata Supremo", 1000 },
  27.     { "Ouro 1", 1150 },
  28.     { "Ouro 2", 1300 },
  29.     { "Ouro 3", 1450 },
  30.     { "Ouro 4", 1650 },
  31.     { "Ouro 5", 1850 },
  32.     { "Ouro Supremo", 2500 },
  33.     { "Ak 1", 2750 },
  34.     { "Ak 2", 3050 },
  35.     { "Ak Cruzada", 3400 },
  36.     { "Eximio", 3800 },
  37.     { "Aguia", 4300 },
  38.     { "Aguia Lendaria", 4900 },
  39.     { "Supremo", 5600 },
  40.     { "Global Elite", 6400 }
  41. }
  42.  
  43. enum dPlayerData
  44. {
  45.     iKills,
  46.     iUserPontos,
  47.     iMortes,
  48.     iPatente,
  49.     bool:bIsComPatente
  50. }
  51.  
  52. new g_iPlayerData[33][dPlayerData]
  53.  
  54. const TASK_DEAD_PATENTE =           201331
  55. const TASK_PATENTE =                201332
  56.  
  57. new const MESSAGE_TEAMMATE[] = "1 %%c1: %%p2 %%h: %%i3%%%% - %s"
  58. new const MESSAGE_ENEMY[] = "1 %%c1: %%p2 - %s"
  59.  
  60. new g_iMsgStatusText
  61. new g_iRelation
  62. new g_nVaultBet
  63.  
  64. new pCvarMortesPraPerderPts, pCvarRemoverPontos, pCvarKillsPraPegarPatente
  65.  
  66. public plugin_init()
  67. {
  68.     register_plugin("sistemaderanks", "1.0", "MpL# James Configurador")
  69.    
  70.     g_nVaultBet = nvault_open("Points")
  71.    
  72.     pCvarMortesPraPerderPts = register_cvar("lvl_mortes_seguidas_para_perder_pts", "5")
  73.     pCvarRemoverPontos = register_cvar("lvl_remover_pontos", "10")
  74.     pCvarKillsPraPegarPatente = register_cvar("lvl_kills_pra_primeira_patente", "5")
  75.    
  76.     RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawn_Post", 1)
  77.    
  78.     register_event("StatusValue", "EventStatusValue_Relation", "b", "1=1")
  79.     register_event("StatusValue", "EventStatusValue_PlayerID", "b", "1=2", "2>0")
  80.    
  81.     g_iMsgStatusText = get_user_msgid("StatusText")
  82.  
  83.     register_event("DeathMsg", "msg_Death", "a")
  84.     register_logevent("RoundEnd",2,"1=Round_End")
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement