AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [REQ] Need PM Plugin (https://forums.alliedmods.net/showthread.php?t=232174)

noureddine.nasr 12-26-2013 17:23

[REQ] Need PM Plugin
 
not the real plugin but with a list player to pm :3

tonykaram1993 12-26-2013 17:33

Re: Need PM Plugin
 
Understood nothing. EXPLAIN what you want, what is different then the other PM plugins that already exist here on AlliedMods?

Programmer 12-26-2013 20:38

Re: Need PM Plugin
 
Quote:

Originally Posted by noureddine.nasr (Post 2076761)
not the real plugin but with a list player to pm :3

Contains Everything :3 just remove the things you dont want :3

hint: explain more next time

Here amigo

noureddine.nasr 12-27-2013 13:43

Re: Need PM Plugin
 
need private message with a list player for view name to pm
and admin can show all private message only acces "a"

ironskillz1 12-27-2013 15:57

Re: Need PM Plugin
 
Tested:

Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <chatcolor>

#define PLUGIN "Private Message"
#define VERSION "2.0"
#define AUTHOR "ironskillz1" //A.K.A SnusMumrikeN

new Name[33]

public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        register_clcmd ( "say /pm", "PlayerList" )
       
        register_clcmd ( "type_message", "CmdMessage" )
}

public PlayerList(id) {
        new Playermenu, Temp[64]
       
        formatex(Temp,63, "\r[PM]\y Choose a Player")
        Playermenu = menu_create(Temp, "PlayerHandler");
       
        new players[32], pnum, tempid;
        new szName[32], szTempid[10];
       
        get_players(players, pnum, "ch");
        for( new i; i<pnum; i++ )
        {
                tempid = players[i];

                if(tempid == id)
                        continue;
               
                get_user_name(tempid, szName, 31);
                num_to_str(tempid, szTempid, 9);
                menu_additem(Playermenu, szName, szTempid, 0);
        }
       
        menu_display(id, Playermenu);
        return PLUGIN_HANDLED;
}

public PlayerHandler(id, menu, item) {
        if( item == MENU_EXIT )
        {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
       
        new data[6], iName[64];
        new access, callback;
        menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
       
        Name[id] = str_to_num(data);
       
        client_cmd(id, "messagemode type_message")
               
        menu_destroy(menu);
        return PLUGIN_HANDLED;
}

public CmdMessage(id)
{
        if(is_user_connected(Name[id]))
        {
                new szName1[32]
                get_user_name(Name[id], szName1, 31)
               
                ColorChat ( id, GREY, "^4[PM]^3 You sended a message to %s", szName1)
               
                new iMessage[50]
                read_argv( 1,iMessage,49 )
       
                new iPlayers[32], num, iPlayer;
                get_players( iPlayers,  num, "ch" );
                       
                for( new i = 0; i < num; i++ )
                {
                        iPlayer = iPlayers[i];
                       
                        new szName2[32]
                        get_user_name(id, szName2, 31)
                       
                        if(get_user_flags( iPlayer ) & ADMIN_IMMUNITY || iPlayer == Name[id]) 
                                ColorChat ( iPlayer, GREY, "^4[PM]^3 %s from %s", iMessage, szName2)
                       
                        return;
                }       
        }
        ColorChat ( id, GREY, "^4[PM]^3 User is not connected!")
        return;
}


noureddine.nasr 12-28-2013 11:22

Re: Need PM Plugin
 
Thanks You ironskillz1

noureddine.nasr 12-28-2013 13:00

Re: [REQ] Need PM Plugin
 
3 Attachment(s)
The plugin have a errors but i fix it

THE PLUGIN DOWNLOAD :

ironskillz1 12-28-2013 13:18

Re: [REQ] Need PM Plugin
 
Quote:

Originally Posted by noureddine.nasr (Post 2077585)
The plugin have a errors but i fix it

THE PLUGIN DOWNLOAD :


Lol its not a error you just need the newest version of chatcolor.inc and the plugin colorchat.amxx

noureddine.nasr 12-29-2013 09:37

Re: [REQ] Need PM Plugin
 
on compile with the inc and all he have errors ...


All times are GMT -4. The time now is 20:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.