CMD:somecommand( playerid, params[ ] ){ if( Logged[ playerid ] == 0 ) return SendClientMessage( playerid, 0xAAAAAA, "You must be logged in to use commands" ); // And your command...}