04.06.2017, 17:40
Not working.
All command:
All command:
Код:
CMD:a( playerid, params[ ] )
{
if( isnull( params ) )
{
new string[ 512 ]; // change
if( pInfo[ playerid ][ Admin ] > 0 )
{
strcat( string, "CMD LIST" );
}
ShowPlayerDialog( playerid, DIALOG_EMPTY, DIALOG_STYLE_MSGBOX, ""DIALOG_TITLE" ADMIN CMDS", string, "Close", "" );
return true;
}
new Check[ 2 ][ 128 ];
sscanf( params, "s[ 128 ]s[ 128 ]", Check[ 0 ], Check[ 1 ] );
if( !strcmp( Check[ 0 ], "say" ) )
{
if( !Check[ 1 ][ 0 ] ) return SendMessage( playerid, BLUE, "COMMAND: /a say <text>." );
if( strlen( Check[ 1 ] ) > 128) return SendMessage( playerid, RED, "ERROR." );
new string[ 256 ];
format( string, sizeof( string ), "Admin %s | %s", NameRPG( playerid ), Check[ 1 ] );
SendClientMessageToAll(-1, string );
return true;
}
return true;
}

