13.01.2012, 01:20
Proba con este el de ariva no creo que te funcione :S, de la forma que lo quieres vos.
pawn Код:
if(strcmp(cmd, "/say", true) == 0) // By CuervO_NegrO
{
if (PlayerInfo[playerid][pAdmin] >= 5)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
idx++;
if(!strlen(result)) return SendClientMessage(playerid, COLOR_GREY, "USO: /say [texto]");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* Admin %s: %s", sendername,((result));
SendClientMessageToAll(0x2587CEFF, string);
format(string, sizeof(string), "[ADMIN]: %s Has Wrote At the Console: [ADM: %s]", sendername, (result));
ABroadCast(COLOR_LIGHTRED,string, 5);
SaveStuff();
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Wrote at the Console: [Admin: %s]",d,m,y,h,mi,s,sendername,(result));
AdminLog(string);
}
return 1;
}

