ZCMD Problem
#2

ZCMD commands do not go inside of a callback.

pawn Код:
CMD:am( playerid, params[] )
{
    if( IsPlayerAdmin ( playerid ) )
    {
        if( isnull ( params ) )
        {
            SendClientMessageToAll ( COLOR_LIGHTBLUE, params );
        }
        else return SendClientMessage ( playerid, -1, "USAGE: /am [ text ]" );
        // They typed /am with nothing after it.
    }
    else return false; // No permissions.
    return true;
}
Reply


Messages In This Thread
ZCMD Problem - by Nathan_Taylor - 27.02.2013, 21:51
Re: ZCMD Problem - by 2KY - 27.02.2013, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)