pm help needed
#1

can someone help me i need a pm script which sends a pm to a player and a 3d text is recieved by a player taht "pm recieved" and to the sender a 3d text is again recieved by the plyer "pm sent"
Reply
#2

Код:
CMD:pm(playerid, params[])
{
	new pmID, pmMSG[64], stringsnd[128], stringfrm[128];
	if(sscanf(params, "us[64]", pmID, pmMSG)) return SendClientMessage(playerid, COLOR_SYNTAX, "[Syntax]: /pm [playerid] [message]");
	if(pmID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "[Error]: Invalid playerid.");
	{
		if(PlayerInfo[playerid][pAduty] == 1)
		{
			format(stringfrm, sizeof(stringfrm), "(( PM from {F78009}%s{F2DB0D} (%i): %s ))", GetName(playerid), playerid, pmMSG);
			SendClientMessage(pmID, COLOR_PM, stringfrm);
			format(stringsnd, sizeof(stringsnd), "(( PM sent to %s (%i): %s ))", GetName(pmID), pmID, pmMSG);
			SendClientMessage(playerid, COLOR_PM, stringsnd);
		}
		else
		{
			format(stringfrm, sizeof(stringfrm), "(( PM from %s (%i): %s ))", GetName(playerid), playerid, pmMSG);
			SendClientMessage(pmID, COLOR_PM, stringfrm);
			format(stringsnd, sizeof(stringsnd), "(( PM sent to %s (%i): %s ))", GetName(pmID), pmID, pmMSG);
			SendClientMessage(playerid, COLOR_PM, stringsnd);
		}
		
		
	}
		
	return 1;
}
This worked last time I checked, just add the 3d text wherever you see it necessary
Reply
#3

idk how to add 3d text
Reply
#4

Quote:
Originally Posted by ashwinsekhari
Посмотреть сообщение
can someone help me i need a pm script which sends a pm to a player and a 3d text is recieved by a player taht "pm recieved" and to the sender a 3d text is again recieved by the plyer "pm sent"
If I'm not wrong, did you mean 3dtext as this?
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#6

Quote:
Originally Posted by Lordz™
Посмотреть сообщение
If I'm not wrong, did you mean 3dtext as this?
yes ur write i need like this

like that which young generation's is using
Reply
#7

it should be in the script allready just to /cnnn if its an RP Server and there you have it mate
Reply
#8

Quote:
Originally Posted by GangsterLifeRP
Посмотреть сообщение
it should be in the script allready just to /cnnn if its an RP Server and there you have it mate
Really? Many roleplay servers have /cnn dosent mean that each invindual script have it. I also suggest read above, he wanted it to appear on players screen after they sent an privat message.
Reply
#9

PHP код:
CMD:pm(playerid,params[])
{
    new 
target,tName[MAX_PLAYER_NAME],message[100],pName[MAX_PLAYER_NAME],string[124];
    if(
sscanf(params,"us[100]",target,message)) return SendClientMessage(playerid,-1,"Error:/pm [playerid] [message]");
    if(!
IsPlayerConnected(target)) return SendClientMessage(playerid,-1,"ERROR:Player not connected");
    
GetPlayerName(target,tName,sizeof(tName));
    
GetPlayerName(playerid,pName,sizeof(pName));
    
format(string,sizeof(string),"PM From %s - %s");
    
GameTextForPlayer(target,string,10000,0);
     return 
1;

Reply
#10

like if you sent a pm it says like this look in the pic



and when u recieve it says like this
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)