Raised This Month: $51 Target: $400
 12% 

[REQ] PM


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mohamedmd7
Senior Member
Join Date: Jan 2014
Location: Morocco
Old 03-14-2014 , 06:42   [REQ] PM
Reply With Quote #1

Hi
i want plugin private message
cmd /pm
and choose player
ex:
photo
mohamedmd7 is offline
LambStar
Member
Join Date: Aug 2012
Location: UAE
Old 03-14-2014 , 08:39   Re: [REQ] PM
Reply With Quote #2

Try this:

https://forums.alliedmods.net/showthread.php?t=188906
LambStar is offline
BadreAchkour
Junior Member
Join Date: Mar 2014
Location: Morocco
Old 03-14-2014 , 08:41   Re: [REQ] PM
Reply With Quote #3

He Say PM Menu Not PM Normal -_-
__________________
No Info !!!
BadreAchkour is offline
Send a message via Skype™ to BadreAchkour
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 03-14-2014 , 09:20   Re: [REQ] PM
Reply With Quote #4

Try this its something similar

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.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
mohamedmd7
Senior Member
Join Date: Jan 2014
Location: Morocco
Old 03-14-2014 , 14:06   Re: [REQ] PM
Reply With Quote #5

Not Working
mohamedmd7 is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 03-14-2014 , 14:08   Re: [REQ] PM
Reply With Quote #6

Do you think that im a wizard or something?

Tell me what doesnt work.
__________________
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
Spawner30
BANNED
Join Date: Dec 2013
Location: I Don't Know Yet
Old 03-14-2014 , 14:36   Re: [REQ] PM
Reply With Quote #7

Quote:
Originally Posted by mohamedmd7 View Post
Not Working
Work For Me Fine
Spawner30 is offline
Send a message via Skype™ to Spawner30
mohamedmd7
Senior Member
Join Date: Jan 2014
Location: Morocco
Old 03-14-2014 , 14:51   Re: [REQ] PM
Reply With Quote #8

I see In Amxmodmenu --> Stop plugin
Unknow
mohamedmd7 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-14-2014 , 14:58   Re: [REQ] PM
Reply With Quote #9

Quote:
Originally Posted by mohamedmd7 View Post
I see In Amxmodmenu --> Stop plugin
Unknow
And what does it show in the error log?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
mohamedmd7
Senior Member
Join Date: Jan 2014
Location: Morocco
Old 03-14-2014 , 15:26   Re: [REQ] PM
Reply With Quote #10

Nothing

Last edited by mohamedmd7; 03-14-2014 at 15:28.
mohamedmd7 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 10:09.


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