Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <fun>
- #define PLUGIN "StartRound He Grande"
- #define VERSION "1.0"
- #define AUTHOR "Seroff"
- static szRound,sPrefixMaps[][] = // На каких картах не будет доступно!
- {
- "35",
- "35hp",
- "awp_",
- "fy_",
- "aim_"
- };
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- new szMap[32];
- get_mapname(szMap,sizeof(szMap)-1);
- for(new a=0;a<sizeof(sPrefixMaps);a++){
- if(containi(szMap,sPrefixMaps[a])!=-1){
- pause("a");
- }
- }
- register_event("TextMsg", "RestartRound", "a", "2&#Game_C", "2&#Game_w");
- register_event("HLTV", "RoundStart", "a", "1=0", "2=0");
- }
- public RestartRound(){ szRound=0; }
- public RoundStart(){
- szRound++;
- if(szRound<2) return 0;
- set_task(2.5,"set_user");
- return 0;
- }
- public set_user(){
- for(new id=1;id<33;id++){
- if(user_alive(id)){
- give_item(id, "weapon_hegrenade");
- }
- }
- }
- stock bool:user_alive(id){
- new players[32],pnum
- get_players(players,pnum,"a")
- for(new i ; i < pnum ; i++){
- if(id==players[i]){
- return true;
- }
- }
- return false;
- }
Add Comment
Please, Sign In to add comment