Advertisement
ByBring

Gonderbaba

Apr 25th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.26 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3. #include <amxmisc>
  4. #include <hamsandwich>
  5. #include <cstrike>
  6. #include <fakemeta>
  7. #include <engine>
  8.  
  9. #if defined _jail_included
  10. #endinput
  11. #endif
  12. #define _jail_included
  13.  
  14. #define L_YETKI ADMIN_RCON  // yetkıyı burdan deistirin
  15.  
  16.  
  17.  
  18. native jb_get_user_packs(id)
  19.     native jb_set_user_packs(id, ammount)
  20.  
  21. public plugin_init() {
  22.     register_plugin("Jb Verme", "1.0", "Bilinmiyor")
  23.  
  24.     register_concmd("amx_gonderbaba", "jbver", L_YETKI, "<isim> <miktar>")
  25. }
  26. public jbver(id,level,cid) {
  27.     if (!cmd_access(id,level,cid,3)) return PLUGIN_HANDLED
  28.  
  29.     new argument[32],packs[4]
  30.  
  31.     read_argv(1,argument,31)
  32.     read_argv(2,packs,3)
  33.  
  34.     new player = cmd_target(id,argument,CMDTARGET_ALLOW_SELF)
  35.  
  36.     if (!player) return PLUGIN_HANDLED
  37.  
  38.     new int_packs = str_to_num(packs),name[32],name2[32]
  39.     if (int_packs < 1){
  40.         client_print(id,print_console, "Oyuncuya jb verme yetkiniz yok")
  41.         return PLUGIN_HANDLED
  42.     }
  43.     get_user_name(id, name, 31)
  44.     get_user_name(player, name2, 31)
  45.     jb_set_user_packs(player, jb_get_user_packs(player) + int_packs)
  46.  
  47.     return PLUGIN_HANDLED
  48. }
  49. /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
  50. *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
  51. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement