14.07.2010, 22:49
I bet theres some fails in the code but I made it quick, I know the str(len) thing doesn't work right now it doesn't atleast.
pawn Код:
if(sscanf(params,"s[126]",msg)) SendClientMessage(playerid,COLOR_WHITE,"Usage: /a [Message]");
else
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerAccount[i][Admin] >= 1)
{
new string[80],string2[63],msg2[64],msg1[80];
if(strlen(msg) >= 63)
{
strmid(string2,msg,63,strlen(msg));
strmid(string,msg,0,63);
format(msg1,sizeof(msg1),"AChat %s: %s..",pname,string);
format(msg2,sizeof(msg2),"..%s",string2);
}
else
{
format(string,sizeof(string),"AChat %s: %s",pname,msg);
SendClientMessage(i,COLOR_PURPLE,string);
}
}
}
}

