Advertisement
Alelluja

Untitled

Jan 19th, 2020
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <ColorChat>
  3.  
  4. #define PLUGIN "FREE VIP"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Devil"
  7.  
  8. new Forward_amxbans,
  9. iRet;
  10.  
  11. public plugin_init()
  12. {
  13. register_plugin(PLUGIN, VERSION, AUTHOR);
  14.  
  15. Forward_amxbans = CreateMultiForward("amxbans_admin_connect", ET_IGNORE, FP_CELL);
  16. }
  17. public client_connect(id)
  18. {
  19. if(is_steam(id))
  20. {
  21. set_task(10.0,"Free_VIP",id)
  22. }
  23. }
  24. public Free_VIP(id)
  25. {
  26. if(get_user_flags(id) & ADMIN_LEVEL_H)
  27. {
  28. return;
  29. }
  30. ColorChat(id,GREEN,"[JailBreak] ^x03Otrzymales darmowego VIP'a za posiadanie konta Steam.");
  31.  
  32. set_user_flags(id, ADMIN_LEVEL_H);
  33.  
  34. ExecuteForward(Forward_amxbans, iRet, id);
  35. }
  36. stock bool:is_steam(id)
  37. {
  38. new auth[65];
  39.  
  40. get_user_authid(id,auth,64);
  41.  
  42. if(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1)
  43. {
  44. return true;
  45. }
  46. return false;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement