08.10.2010, 08:23
Using zcmd and sscanf2 heres a quik one i wrote that should work (unless i missed something) only for rcon as i don't know what admin script you use.
pawn Код:
COMMAND:ask(playerid,params[])
{
new str[128];
if(sscanf(params,"s[128]",str))return SendClientMessage(playerid,0xff0000ffFF,"Error: Usage /ask [message]");
{
for(new i; i < MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i) || !IsPlayerAdmin(i))continue;
else
{
format(str,sizeof(str),"(%d)%s asks: %s?",playerid,playername(playerid),str);
SendClientMessage(i,0x00ff00AA,str);
}
}
}
return 1;
}
stock playername(playerid)//preferably put this way down at the bottom of the script although it doesn't realy matter.
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
return pname;
}