Help! :D
#3

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;
}
Reply


Messages In This Thread
Help! :D - by [MKD]Max - 08.10.2010, 08:11
Re: Help! :D - by [MKD]Max - 08.10.2010, 08:19
Re: Help! :D - by iggy1 - 08.10.2010, 08:23
Re: Help! :D - by Rachael - 08.10.2010, 08:32
Re: Help! :D - by iggy1 - 08.10.2010, 08:33
Re: Help! :D - by LarzI - 08.10.2010, 08:44
Re: Help! :D - by [MKD]Max - 08.10.2010, 08:45
Re: Help! :D - by iggy1 - 08.10.2010, 08:50
Re: Help! :D - by Lenny the Cup - 08.10.2010, 08:54
Re: Help! :D - by LarzI - 08.10.2010, 11:08

Forum Jump:


Users browsing this thread: 3 Guest(s)