Jump to content
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    [Partage]No Buyzone


    iNex

    Recommended Posts

    bonjour,

    Voici un plugin pour désactiver les buyzone

    public Plugin:myinfo = 
    {
       name = "No Buyzone",
       author = "iNex",
       description = "Desactivation de la buyzone",
       version = "0.0154B",
       url = "www.daily-studio.com"
    }
    public OnPluginStart()
    {
       HookEvent("round_start", Event_RoundStart, EventHookMode_PostNoCopy);
    }
    //supprime l'entity buyzone
    public OnMapStart()
    {
       decl String:szClass[65];
       for (new i = MaxClients; i <= GetMaxEntities(); i++)
       {
           if(IsValidEdict(i) && IsValidEntity(i))
           {
               GetEdictClassname(i, szClass, sizeof(szClass));
               if(StrEqual("func_buyzone", szClass))
               {
                   RemoveEdict(i);
               }
           }
       } 
    }
    //desactive l'entity buyzone
    public Event_RoundStart(Handle:event, const String:name[], bool:dontBroadcast)
    {
       decl String:szClass[65];
       for (new i = MaxClients; i <= GetMaxEntities(); i++)
       {
           if(IsValidEdict(i) && IsValidEntity(i))
           {
               GetEdictClassname(i, szClass, sizeof(szClass));
               if(StrEqual("func_buyzone", szClass))
               {
                   RemoveEdict(i);
               }
           }
       } 
    }
    

     

    Addons.rar

     

    Have fun

     

    Cordialement,

    iNex

    Link to comment
    Share on other sites

    C'est les mêmes codes? J'arrive pas a voir

     

    Une partie oui. Je ne m'y connais pas, mais sa me parait logique étant donné que les 2 codes ont la même fonction... Donc s'il vous plaît ne repartez pas sur le plagia :-|.

     

    Merci pour le partage.

    Edited by Aspirinefr
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...