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

    [Partage] Plusieur Plugin


    KBEM

    Recommended Posts

    Salut la jeunesse ^^

     

    Je vous fait par de quelque plugins ^^.

     

    Plugin /plainte.

     

    #include <morecolors>
    
    new g_plainte[MAXPLAYERS+1] = 0;
    
    public Plugin:myinfo = 
    {
       name = "plainte",
       author = "Steven",
       version = "1.0",
    };
    
    public OnPluginStart()
    {
       RegConsoleCmd("sm_plainte", Command_Plainte);
    }
    
    public Action:Command_Plainte(client, args)
    {
       if (client && IsClientInGame(client))
       {
           if (args < 1)
           {
               ReplyToCommand(client, "[sheez-RP] : Utilisation: /plainte <message COMPLET>");
               return Plugin_Handled;
           }
    
           new timestamp;
           timestamp = GetTime();
    
           if ((timestamp - g_plainte[client]) < 60)
           {
               ReplyToCommand(client, "{red} [PLAINTE] Vous devez attendre %i secondes avant de refaire une plainte", ( 60 - (timestamp - g_plainte[client])) );
               return Plugin_Handled;
           }
    
           g_plainte[client] = GetTime();
           new String:message[128];
    
           GetCmdArgString(message, sizeof(message));
    
           for(new i=1; i <= GetMaxClients(); i++)
           {
               if ((IsClientInGame(i)) && GetUserFlagBits(i) & ADMFLAG_SLAY || GetUserFlagBits(i) & ADMFLAG_ROOT)
               {
                   CPrintToChat(i, "{red} [PLAINTE] de %N : %s", client, message);
               }
           }
    
           CPrintToChat(client, "{red} [PLAINTE] Votre plainte a bien été envoyée, merci d'être patient.");
    
           return Plugin_Handled;
       }
    
       return Plugin_Handled;
    }  
    

     

    Plugin CacheKill {ROLEPLAY}

     

    #include <sourcemod>
    
    public Plugin:myinfo =
    {
    name = "Cache",
    author = "Protect",
    version = "1.0",
    };
    
    public OnPluginStart()
    {
    HookEvent("player_death", OnDeathPre, EventHookMode_Pre);
    }
    
    public OnDeathPre(Handle:event, String:name[], bool:DontBroadCast)
    {
    return Plugin_Handled;
    }

     

    Plugin : Enlever le message dan le chat "Vous attaquez un coéquipier" 'ROLEPLAY OU AUTRE}

    
    public Plugin:myinfo =
    {
    name = "Enlever Message Kill RP",
    author = "Protect",
    version = "1.0",
    };
    
    new UserMsg:g_textmsg;
    
    public OnPluginStart()
    {
       g_textmsg = GetUserMessageId("TextMsg");
       HookUserMessage(g_textmsg, UserMessageHook, true);
    }
    
    public Action:UserMessageHook(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
    {
       decl String:message[256];
       BfReadString(bf, message, sizeof(message));
       if (StrContains(message, "teammate_attack") != -1)
       {
           return Plugin_Handled;
       }
       return Plugin_Continue;
    

     

    Plugin : DV

     

    #include <sdktools>
    #include <sourcemod>
    #include <colors>
    
    #define MAX_FILE_LEN 256
    
    public Plugin:myinfo =
    {
       name = "*~ Plugin DV ~*",
       author = "Delachambre",
       description = "Annonce la DV",
       version = "1.0",
       url = "http://vip-magnetik.fr/"
    }
    
    public OnPluginStart()
    {  
           HookEvent("player_death", Event_PlayerDeath);
    
           RegConsoleCmd("sm_dv", Cmd_Dv);
    }
    
    public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
    {
       new victim = GetClientOfUserId(GetEventInt(event, "userid"));
       if (GetClientTeam(victim) == 2)
       {
           decl Ts;
           for(new i=1; i < MaxClients; i++)
           {
               if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == 2)
               {
                   Ts++;
               }
           }
           if (Ts == 1)
                   {
                           PrintCenterTextAll("==========> DERNIERE VOLONTEE <==========");
                           {
                                   CPrintToChatAll("{red}======== DERNIERE VOLONTEE ========");
                                   CPrintToChatAll("{red}Le dernier T a accès a sa DV");
                                   CPrintToChatAll("{red}Il peut tapé !dv");
                                   CPrintToChatAll("{red}======== DERNIERE VOLONTEE ========");
                                   ServerCommand("sm_tsay pink => DV <=");
                           }
                   }
       }
    }
    
    public Action:Cmd_Dv(client, args)
    {
           new Ts;
           for(new i=1; i <= GetMaxClients(); i++)
                   {
                           if (IsClientInGame(i) && IsPlayerAlive(i) && GetClientTeam(i) == 2)
                           {
                                   Ts++;
                           }
                   }
           if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)) && (Ts == 1))
           {
                   new Handle:menu = CreateMenu(dvmenu);
                   SetMenuTitle(menu, "Choisis ta DV :");
                   AddMenuItem(menu, "Cut", "Combat de Cut");
                   AddMenuItem(menu, "Roulette", "Roulette");
                   AddMenuItem(menu, "Isoloir", "Isoloire");
                   AddMenuItem(menu, "Planchepirate", "Planche pirate");
                   AddMenuItem(menu, "Roulettechinoise", "Roulette chinoise");
                   AddMenuItem(menu, "Cutaquatique", "Cut aquatique");
                   DisplayMenu(menu, client, 15);
           }
           else
           {
                   CPrintToChat(client, "{green}[JailMod] : {lightgreen}Vous n'avez pas accès a cette commande.");
           }
    }
    
    public dvmenu(Handle:menu, MenuAction:action, client, param2)
    {      
           if (action == MenuAction_Select)
           {
                   new String:info[32];
                   GetMenuItem(jail_menu, param2, info, sizeof(info));
    
                   for (new i = 1; i < MaxClients; i++)
                   {
                           if (StrEqual(info, "Cut"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un combat de cut.");
                                   PrintCenterTextAll("=====> DV : CUT <=====");
    
                                   new Float:origincut[3]
                                   origincut[0] =  -2774.0
                                   origincut[1] =  -1255.7
                                   origincut[2] =  128.0
    
                                   if ((GetClientTeam(client) == 2) && IsPlayerAlive(client))
                                   {
                                           SetEntityHealth(client, 200);
                                           TeleportEntity(client, origincut, NULL_VECTOR, NULL_VECTOR);
                                   }
                                   TeleportEntity(i, origincut, NULL_VECTOR, NULL_VECTOR);
                                   SetEntityHealth(i, 200);
                           }
    
                           if (StrEqual(info, "Roulette"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une roulette normal.");
                                   PrintCenterTextAll("=====> DV : ROULETTE <=====");
    
                                   new Float:originrou[3]
                                   originrou[0] =  -337.7
                                   originrou[1] =  195.5
                                   originrou[2] =  128.0
    
                                   if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                   {
                                           GivePlayerItem(client, "weapon_deagle");
                                           SetEntityHealth(client, 100);
                                           TeleportEntity(client, originrou, NULL_VECTOR, NULL_VECTOR);
                                   }
    
                                   TeleportEntity(i, originrou, NULL_VECTOR, NULL_VECTOR);
                                   GivePlayerItem(i, "weapon_deagle");
                                   SetEntityHealth(i, 100);
                           }
    
                           if (StrEqual(info, "Isoloir"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un isoloire.");
                                   PrintCenterTextAll("=====> DV : ISOLOIRE <=====");
                                   new Float:originiso[3]
    
                                   originiso[0] =  -1429.7
                                   originiso[1] =  -723.7
                                   originiso[2] =  129.0
    
                                   if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                   {
                                           GivePlayerItem(client, "weapon_m249");
                                           SetEntityHealth(client, 400);
                                           TeleportEntity(client, originiso, NULL_VECTOR, NULL_VECTOR);
                                   }
                                   TeleportEntity(i, originiso, NULL_VECTOR, NULL_VECTOR);
                                   SetEntityHealth(i, 400);
                           }
    
                           if (StrEqual(info, "Planchepirate"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une planche pirate.");
                                   PrintCenterTextAll("=====> DV : PLANCHE PIRATE <=====");
    
                                   new Float:origin[3]
                                   origin[0] =  -285.8
                                   origin[1] =  2240.6
                                   origin[2] =  128.0
    
                                   if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                   {
                                           GivePlayerItem(client, "weapon_deagle");
                                           SetEntityHealth(client, 100);
                                           TeleportEntity(client, origin, NULL_VECTOR, NULL_VECTOR);
                                   }
    
                                   TeleportEntity(i, origin, NULL_VECTOR, NULL_VECTOR);
                                   SetEntityHealth(i, 100);
                                   GivePlayerItem(i, "weapon_deagle");
                           }
    
                           if (StrEqual(info, "Roulettechinoise"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis une roulette chinoise.");
                                   PrintCenterTextAll("=====> DV : ROULETTE CHINOISE <=====");
    
                                   new Float:originchi[3]
                                   originchi[0] =  -1193.1
                                   originchi[1] =  260.7
                                   originchi[2] =  264.0
    
                                   if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                   {
                                           GivePlayerItem(client, "weapon_deagle");
                                           SetEntityHealth(client, 100);
                                           TeleportEntity(client, originchi, NULL_VECTOR, NULL_VECTOR);
                                   }
                                   TeleportEntity(i, originchi, NULL_VECTOR, NULL_VECTOR);
                                   SetEntityHealth(i, 100);
                                   GivePlayerItem(i, "weapon_deagle");
                           }
    
                           if (StrEqual(info, "Cutaquatique"))
                           {
                                   CPrintToChatAll("{green}[Dernière volontée] : {lightgreen}Le terroriste a choisis un cut aquatique.");
                                   PrintCenterTextAll("=====> DV : CUT AQUATIQUE <=====");
                                   new Float:originaqua[3]
                                   originaqua[0] =  -191.6
                                   originaqua[1] =  2527.0
                                   originaqua[2] =  274.3
                                   if ((GetClientTeam(client) == 2) && (IsPlayerAlive(client)) && (IsClientInGame(client)))
                                   {
                                           TeleportEntity(client, originaqua, NULL_VECTOR, NULL_VECTOR);
                                   }
                                   TeleportEntity(i, originaqua, NULL_VECTOR, NULL_VECTOR);
                           }
                   }
           }
           else if (action == MenuAction_End)
           {
                   CloseHandle(menu);
           }
    }
    

     

    Plugin : /regles

     

    
       #include <sourcemod>
       #include <smlib>
       #include <sdktools>
       #include <cstrike>
    
    
       public OnPluginStart()
       {
       RegConsoleCmd("sm_regles", Command_Regles);
       }
    
       public OnClientPutInServer(client)
       {
       CreateTimer(30.0, Timer_Regles);
       }
    
       public Action:Command_Regles(client, args)
       {
       PrintToChat(client, ".:Nom de votre team:.\n\n------------------\n\n\n- Pas de kill au spawn -\n- Pas de kill sur la première ramp -\n- Pas d'insultes envers qui que ce soit -\n\n\n------------------");
       }
    
       public Action:Timer_Regles(Handle:timer, any:client)
       {
                       PrintToChat(client, "\x04[.:Nom de votre team:.] \x01Si vous ne connaissez pas les règles, tapez !regles.");
       }                
    

     

    Si par hasard , le plugin d'une personne y est , est que le créateur ne veut pas le partager , m'en fait savoir :)

    Voila ^^ J'ajouterais au fur et a mesure !

    Edited by KBEM
    Link to comment
    Share on other sites

    merci du partage mais met les auteurs sur tes plugin ;)

     

    code 1 avec auteur :)

    #include <sdktools>#include "colors.inc"
    #define SOUND_PLAINTE "buttons/blip2.wav"
    new g_plainte[MAXPLAYERS + 1];
    
    
    public Plugin:myinfo = {
       name         = "Système de plainte",
       author         = "Steven",
       description = "Permet aux utilisateurs de se plaindre",
       version     = "1.0",
       url = "http://nsnf-clan.net"
    };
    
    
    public OnPluginStart()
    {
       RegConsoleCmd("plainte", Cmd_plainte, "Permet aux utilisateurs de se plaindre");
    }
    
    
    public OnMapStart()
    {
       PrecacheSound(SOUND_PLAINTE, true);
    }
    
    
    public Action:Cmd_plainte(client, args)
    {
       if (args < 1)
       {
           ReplyToCommand(client, "[sM] Utilisation: /plainte <message COMPLET>");
           return Plugin_Handled;
       }
       new timestamp;
       timestamp = GetTime();
    
       if ((timestamp - g_plainte[client]) < 60) //Modifier le "60" par le délai souhaité pour limiter les abus ^^
       {
           ReplyToCommand(client, "[sM] Vous devez attendre %i secondes avant de refaire une plainte",( 60 - (timestamp - g_plainte[client])) );//Limiter le 60 ici aussi
           return Plugin_Handled;
       }
    
       g_plainte[client] = GetTime();
       new String:message[128];
       new String:user[64];
    
       GetCmdArgString(message, sizeof(message));
       GetClientName(client,user, sizeof(user));
    
    
       for(new i=1; i <= GetMaxClients(); i++)
       {
           if ( (IsClientInGame(i)) && GetUserFlagBits(i) & ADMFLAG_SLAY)
           {
               CPrintToChat(i,"{red} *** [PLAINTE] de {green}%s{red} :{green} %s",user,message)
               EmitSoundToClient(i, SOUND_PLAINTE);
           }
       }
       CPrintToChat(client,"{blue} *** Votre plainte a bien été envoyée, merci d'etre patient....")
       return Plugin_Continue; } 

    Link to comment
    Share on other sites

    Salut , Skuzy ta expliquer le principe :)

    Donc oui , quand tu dépose une plainte , il te dise "*** Votre plainte a bien été envoyée, merci d'etre patient...."

    Et en tant qu'admin sa dit "*** [PLAINTE] de {green}%s{red} :{green} %s"

    Puis aussi entre chaque plainte que tu fais tu doit attendre 30 seconde , a toi de le modifier a ta guise.

    Edited by KBEM
    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...