[Help] /pm
#1

i tried to change a bit the "/pm" command
but when i do it, it sends my message to the recieverid, but send olso the regular message,
how can I disable the regular message?

public OnPlayerPrivmsg(playerid, recieverid, text[])
{
new string[256], string2[256], p1[MAX_PLAYER_NAME], p2[MAX_PLAYER_NAME];
GetPlayerName(playerid, p1, sizeof(p1));
GetPlayerName(recieverid, p2, sizeof(p2));
format(string, sizeof(string), "You Sent PM to [ID:%d | %s]: %s", recieverid, p2, text);
SendClientMessage(playerid, LIGHTBLUE, string);
format(string2, sizeof(string2), "You Recived PM from [ID:%d | %s]: %s", playerid, p1, text);
SendClientMessage(recieverid, LIGHTBLUE, string2);

return 1;
}
Reply


Messages In This Thread
[Help] /pm - by borisblat - 18.06.2009, 14:26
Re: [Help] /pm - by Grim_ - 18.06.2009, 14:35
Re: [Help] /pm - by MenaceX^ - 18.06.2009, 14:40
Re: [Help] /pm - by borisblat - 18.06.2009, 16:19
Re: [Help] /pm - by MenaceX^ - 18.06.2009, 16:45
Re: [Help] /pm - by borisblat - 18.06.2009, 17:26
Re: [Help] /pm - by GTA_Rules - 18.06.2009, 18:04
Re: [Help] /pm - by MenaceX^ - 18.06.2009, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)