Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
News ticker
  • Bienvenue sur le nouveau forum VeryGames
  • Welcome to the new VeryGames forum
  • VeryNews

    Plugin /plainte


    Clement76
     Share

    Recommended Posts

    Mais sérieux arrêter avec vos truc priver x)

     

    #include <morecolors>
    
    new g_plainte[MAXPLAYERS+1] = 0;
    
    public OnPluginStart()
    {
       RegConsoleCmd("sm_plainte", Command_Plainte);
    }
    
    public Action:Command_Plainte(client, args)
    {
       if (client && IsClientInGame(client))
       {
           if (args < 1)
           {
               ReplyToCommand(client, "[sM] : 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;
    }
    

    Link to comment
    Share on other sites

    enfaite ya un probleme pour le compiler le plugin sa met sa

    [b]Your plugin failed to compile![/b] Read the errors below:
    
    SourcePawn Compiler 1.4.0 Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC  /home/groups/sourcemod/upload_tmp/phpOcUVop.sp(1) : fatal error 120: cannot read from file: "morecolors"

    Link to comment
    Share on other sites

    Guest Invité

    Bonjour,

     

    je ne connais pas le SP, mais logiquement dans tu as '#include <morecolors>' il faut s'assurer que tu l'es aussi et non pas juste le bout de code. D'où ton erreur lors de la compil. C'est à confirmer mais je pense que c'est cela. ;-)

    Link to comment
    Share on other sites

    Mais sérieux arrêter avec vos truc priver x)

     

    #include <morecolors>
    
    new g_plainte[MAXPLAYERS+1] = 0;
    
    public OnPluginStart()
    {
       RegConsoleCmd("sm_plainte", Command_Plainte);
    }
    
    public Action:Command_Plainte(client, args)
    {
       if (client && IsClientInGame(client))
       {
           if (args < 1)
           {
               ReplyToCommand(client, "[sM] : 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;
    }
    

     

     

    Voici Le SP

    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.

     Share

    ×
    ×
    • Create New...