09.08.2014, 21:31
Code:
//============================================================================== //Private Message (PM) //============================================================================== public OnPlayerPrivmsg(playerid, recieverid, text[]) { //-------------------------------------------------------------------------- //Reading PM's //-------------------------------------------------------------------------- new string[220]; //-------------------------------------------------------------------------- format(string, 220, "{FF0000}PrivateMessage: {00FF00}%s to %s: %s .*", PlayerName2(playerid), PlayerName2(recieverid), text); for(new a = 0; a < MAX_PLAYERS; a++) { if(IsPlayerConnected(a)) { if(AccInfo[a][Level] >= 8) { if(AccInfo[a][ReadPM] == 1) { SendClientMessage(a, grey, string); } } } } SaveIn("PMsLog",string);