Help please. Rep +1
#3

You can do something like this.
pawn Код:
command( help, playerid, params[] )
{
    new text[32];
    if ( sscanf( params, "s[32]", text ) )
    {
        if ( !strcmp( params, "ACCOUNT", true ) )
        {
            SendClientMessage( playerid, -1, "Account Help:" );
            SendClientMessage( playerid, -1, "/changepass, /playerwarns, /stats, /changespawn, /myadminrecord" );
        }  
        else if ( !strcmp( params, "GENERAL", true ) )
        {
            Commands;
        }
        else if ( !strcmp( params, "DONATOR", true ) )
        {
            if ( Player[playerid][VipRank] >= 1 )
            {
                Commands;
            }
            if ( Player[playerid][VipRank] >= 2 )
            {
                Commands;
            } else  {
                Commands;
            }
        }
        /* Other goes here */
    }
}
Reply


Messages In This Thread
Help please. Rep +1 - by RoleplayEditor - 15.03.2012, 12:32
Re: Help please. Rep +1 - by konorbi3 - 15.03.2012, 12:47
Re: Help please. Rep +1 - by T0pAz - 15.03.2012, 12:48
Re: Help please. Rep +1 - by RoleplayEditor - 15.03.2012, 14:47

Forum Jump:


Users browsing this thread: 1 Guest(s)