SA-MP Forums Archive
Help me in pm command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me in pm command (/showthread.php?tid=94497)



Help me in pm command - Taz86 - 30.08.2009

Hey I have this lines:

pawn Код:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
  new string[128],p1[MAX_PLAYER_NAME],p2[MAX_PLAYER_NAME];
  GetPlayerName(playerid,p1,sizeof(p1));
  GetPlayerName(recieverid,p2,sizeof(p2));
  format(string,sizeof(string),"PM Sent to [ID:%d | %s]: %s",recieverid,p2,text);
  SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  format(string,sizeof(string),"PM Received from [ID:%d | %s]: %s",playerid,p1,text);
  SendClientMessage(recieverid,COLOR_LIGHTBLUE,string);
  return 0;
}
And I dont know wich cmd to use to pm, Or how I can add a cmd to use the pm?


Re: Help me in pm command - .::: Ecko :::. - 30.08.2009

/pm [ID] message

Ecko


Re: Help me in pm command - Taz86 - 30.08.2009

Thanks Helped me alot. :P


Tazz