28.10.2013, 16:14
Код:
COMMAND:apm(playerid, params[]) { // Variable goes here.. EG: If(PlayerInfo[playerid][admin] < 1) return SendClientMessage(playerid, COLOR_RED,"CAN'T USE COMMAND"); new iPlayer, iText[ 128 ]; if( sscanf ( params, "us", iPlayer, iText)) return SCP(playerid, "[PlayerID/PartOfName] [message]"); format(iStr, sizeof(iStr), "{b5cdda}(( {7b94a1}[Admin PM]%s(%d):{b5cdda} %s {7b94a1}))", RPName(playerid), playerid, iText); SendClientMessage(iPlayer, -1, iStr); format(iStr, sizeof(iStr), "{b5cdda}(( {7b94a1}[Admin PM] %s(%d):{b5cdda} %s {7b94a1}))", RPName(iPlayer), iPlayer, iText); SendClientMessage(playerid, -1, iStr); return 1; }