Raised This Month: $ Target: $400
 0% 

[REQ] Need PM Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-26-2013 , 17:23   [REQ] Need PM Plugin
Reply With Quote #1

not the real plugin but with a list player to pm

Last edited by noureddine.nasr; 12-28-2013 at 11:23.
noureddine.nasr is offline
tonykaram1993
Senior Member
Join Date: Mar 2013
Location: This World
Old 12-26-2013 , 17:33   Re: Need PM Plugin
Reply With Quote #2

Understood nothing. EXPLAIN what you want, what is different then the other PM plugins that already exist here on AlliedMods?
__________________
My Plugins:
UltimatePlugin
UltimateSurf
UltimateAdmin
Code:
rcon version | rcon amxx version | rcon meta version
rcon amxx plugins | rcon meta list | rcon status
I AM INACTIVE ON THIS FORUM - For direct contact: [email protected]
tonykaram1993 is offline
Programmer
Member
Join Date: Sep 2012
Location: Somewhere in the Earth
Old 12-26-2013 , 20:38   Re: Need PM Plugin
Reply With Quote #3

Quote:
Originally Posted by noureddine.nasr View Post
not the real plugin but with a list player to pm
Contains Everything just remove the things you dont want

hint: explain more next time

Here amigo
__________________
Hello AMIGOS

Impossible IS Impossible!

Pm me If you want help (HL1 servers and coding)
Programmer is offline
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-27-2013 , 13:43   Re: Need PM Plugin
Reply With Quote #4

need private message with a list player for view name to pm
and admin can show all private message only acces "a"
noureddine.nasr is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 12-27-2013 , 15:57   Re: Need PM Plugin
Reply With Quote #5

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;
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 12-27-2013 at 16:20.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-28-2013 , 11:22   Re: Need PM Plugin
Reply With Quote #6

Thanks You ironskillz1
noureddine.nasr is offline
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-28-2013 , 13:00   Re: [REQ] Need PM Plugin
Reply With Quote #7

The plugin have a errors but i fix it

THE PLUGIN DOWNLOAD :
Attached Files
File Type: sma Get Plugin or Get Source (PM.sma - 592 views - 2.3 KB)
File Type: inc chatcolor.inc (243 Bytes, 157 views)
File Type: inc colorchat.inc (2.5 KB, 150 views)
noureddine.nasr is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 12-28-2013 , 13:18   Re: [REQ] Need PM Plugin
Reply With Quote #8

Quote:
Originally Posted by noureddine.nasr View Post
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
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
noureddine.nasr
BANNED
Join Date: Sep 2013
Location: Morocco
Old 12-29-2013 , 09:37   Re: [REQ] Need PM Plugin
Reply With Quote #9

on compile with the inc and all he have errors ...
noureddine.nasr is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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