Very dumb question
#2

I`ll help you with the second problem. Here`s a /announce command, in ZCMD:

pawn Код:
CMD:announce( playerid, params[ ] )
{
    if ( GetAdminLevel( playerid ) < 3 ) // Here you put your admin levels defined.
        return 1;

    new temptext[ 128 ]; // Here we define the first parameter in the command, for like /announce "TEXT" - text is the parameter
    if ( sscanf( params, "s[128]", temptext ) ) // Here we check if there`s any parameter ... if not, it`ll SendClientMessage to admin that uses /announce
        return SendClientMessage( playerid, -1, "Usage: /(ann)ounce  <Text>");

    new String[ 128 ];

    format( String, sizeof String, "Admin announce: %s", temptext ); // Here`s the output of the command. This message we`ll be send to all players
    SendClientMessageToAll( -1, String );
    return 1;
}
CMD:ann( playerid, params[] ) return cmd_announce( playerid,params ); // With this, you can use /ann instead of /announce
About your first problem ... I can`t really help you.
Reply


Messages In This Thread
Very dumb question - by anumaz - 17.03.2011, 11:13
Re: Very dumb question - by antonio112 - 17.03.2011, 11:45
Re: Very dumb question - by Snipa - 17.03.2011, 14:23
Re: Very dumb question - by anumaz - 17.03.2011, 20:34
Re: Very dumb question - by maramizo - 17.03.2011, 20:39
Re: Very dumb question - by Calgon - 17.03.2011, 20:44
Re: Very dumb question - by anumaz - 17.03.2011, 21:03
Re: Very dumb question - by anumaz - 17.03.2011, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)