15.03.2012, 12:48
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 */
}
}