seroff

StartRound He Grande 1.0 By Seroff

Jan 10th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fun>
  3.  
  4. #define PLUGIN "StartRound He Grande"
  5. #define VERSION "1.0"
  6. #define AUTHOR "Seroff"
  7.  
  8. static szRound,sPrefixMaps[][] = // На каких картах не будет доступно!
  9. {
  10. "35",
  11. "35hp",
  12. "awp_",
  13. "fy_",
  14. "aim_"
  15. };
  16.  
  17. public plugin_init()
  18. {
  19. register_plugin(PLUGIN, VERSION, AUTHOR);
  20. new szMap[32];
  21. get_mapname(szMap,sizeof(szMap)-1);
  22. for(new a=0;a<sizeof(sPrefixMaps);a++){
  23. if(containi(szMap,sPrefixMaps[a])!=-1){
  24. pause("a");
  25. }
  26. }
  27. register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w");
  28. register_event("HLTV", "RoundStart", "a", "1=0", "2=0");
  29. }
  30.  
  31. public RestartRound(){ szRound=0; }
  32.  
  33. public RoundStart(){
  34. szRound++;
  35. if(szRound<2) return 0;
  36. set_task(2.5,"set_user");
  37. return 0;
  38. }
  39.  
  40. public set_user(){
  41. for(new id=1;id<33;id++){
  42. if(user_alive(id)){
  43. give_item(id, "weapon_hegrenade");
  44. }
  45. }
  46. }
  47.  
  48. stock bool:user_alive(id){
  49. new players[32],pnum
  50. get_players(players,pnum,"a")
  51. for(new i ; i < pnum ; i++){
  52. if(id==players[i]){
  53. return true;
  54. }
  55. }
  56. return false;
  57. }
Add Comment
Please, Sign In to add comment