CMD:pm(playerid, params[]){new PID, reason[35], pName[MAX_PLAYER_NAME], Sender[MAX_PLAYER_NAME];if(sscanf(params, \"uz\", PID, reason)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /pm [iD] [Üzenet]\");if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, 0xFF0000FF, \"Hibás ID!\");else{new Str[128];GetPlayerName(PID, pName, sizeof(pName));GetPlayerName(playerid, Sender, sizeof(Sender));format(Str, sizeof(Str), \"[bejövõ PM]: %s [%d]: %s\", Sender, playerid, reason);SendClientMessage(playerid, COLOR_YELLOW, Str);format(Str, sizeof(Str), \"[PM elküldve]: %s [%d]: %s\", pName, PID, reason);SendClientMessage(playerid, COLOR_LIGHTBLUE, Str);}return 1;}
format(Str, sizeof(Str), \"[bejövõ PM]: %s [%d]: %s\", Sender, playerid, reason);SendClientMessage(PID, COLOR_YELLOW, Str);
CMD:pm(playerid, params[]){ new PID, reason[35], pName[MAX_PLAYER_NAME], Sender[MAX_PLAYER_NAME]; if(sscanf(params, \"uz\", PID, reason)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /pm [iD] [Üzenet]\"); if(!IsPlayerConnected(PID)) return SendClientMessage(playerid, 0xFF0000FF, \"Hibás ID!\"); else { new Str[128]; GetPlayerName(PID, pName, sizeof(pName)); GetPlayerName(playerid, Sender, sizeof(Sender)); format(Str, sizeof(Str), \"[bejövõ PM]: %s [%d]: %s\", Sender, playerid, reason); SendClientMessage(PID, COLOR_YELLOW, Str); format(Str, sizeof(Str), \"[PM elküldve]: %s [%d]: %s\", pName, PID, reason); SendClientMessage(playerid, COLOR_LIGHTBLUE, Str); } return 1;}